mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 00:53:56 +00:00
compose: Change video call url text to "Join video call.".
Earlier it was "Click here to join video call".
This commit is contained in:
@@ -4,10 +4,8 @@
|
|||||||
|
|
||||||
{!start-composing.md!}
|
{!start-composing.md!}
|
||||||
|
|
||||||
1. Click the **video-camera** (<i class="fa fa-video-camera"></i>) icon in the
|
1. Click the **video camera** (<i class="fa fa-video-camera"></i>) at the bottom of
|
||||||
bottom left corner of the compose box. This will insert a link like
|
the compose box. This will insert a **Join video call.** link into your message.
|
||||||
**[Click to join video call]\(https://meet.jit.si/123456789)** into the
|
|
||||||
compose box.
|
|
||||||
|
|
||||||
1. Send the message.
|
1. Send the message.
|
||||||
|
|
||||||
@@ -15,7 +13,7 @@ compose box.
|
|||||||
|
|
||||||
!!! tip ""
|
!!! tip ""
|
||||||
|
|
||||||
You can replace "Click to join video call" with anything you want.
|
You can replace the "Join video call." label for the link with any text you like.
|
||||||
|
|
||||||
{end_tabs}
|
{end_tabs}
|
||||||
|
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ export function update_email(user_id, new_email) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function insert_video_call_url(url, target_textarea) {
|
function insert_video_call_url(url, target_textarea) {
|
||||||
const link_text = $t({defaultMessage: "Click to join video call"});
|
const link_text = $t({defaultMessage: "Join video call."});
|
||||||
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea, "block", 1);
|
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea, "block", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ test("videos", ({override}) => {
|
|||||||
handler(ev);
|
handler(ev);
|
||||||
// video link ids consist of 15 random digits
|
// video link ids consist of 15 random digits
|
||||||
const video_link_regex =
|
const video_link_regex =
|
||||||
/\[translated: Click to join video call]\(https:\/\/meet.jit.si\/\d{15}\)/;
|
/\[translated: Join video call\.]\(https:\/\/meet.jit.si\/\d{15}\)/;
|
||||||
assert.ok(called);
|
assert.ok(called);
|
||||||
assert.match(syntax_to_insert, video_link_regex);
|
assert.match(syntax_to_insert, video_link_regex);
|
||||||
})();
|
})();
|
||||||
@@ -176,7 +176,7 @@ test("videos", ({override}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handler(ev);
|
handler(ev);
|
||||||
const video_link_regex = /\[translated: Click to join video call]\(example\.zoom\.com\)/;
|
const video_link_regex = /\[translated: Join video call\.]\(example\.zoom\.com\)/;
|
||||||
assert.ok(called);
|
assert.ok(called);
|
||||||
assert.match(syntax_to_insert, video_link_regex);
|
assert.match(syntax_to_insert, video_link_regex);
|
||||||
})();
|
})();
|
||||||
@@ -219,7 +219,7 @@ test("videos", ({override}) => {
|
|||||||
|
|
||||||
handler(ev);
|
handler(ev);
|
||||||
const video_link_regex =
|
const video_link_regex =
|
||||||
/\[translated: Click to join video call]\(\/calls\/bigbluebutton\/join\?meeting_id=%22zulip-1%22&password=%22AAAAAAAAAA%22&checksum=%2232702220bff2a22a44aee72e96cfdb4c4091752e%22\)/;
|
/\[translated: Join video call\.]\(\/calls\/bigbluebutton\/join\?meeting_id=%22zulip-1%22&password=%22AAAAAAAAAA%22&checksum=%2232702220bff2a22a44aee72e96cfdb4c4091752e%22\)/;
|
||||||
assert.ok(called);
|
assert.ok(called);
|
||||||
assert.match(syntax_to_insert, video_link_regex);
|
assert.match(syntax_to_insert, video_link_regex);
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user