mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
compose_box: Change 'audio' references to 'voice'.
This commit is contained in:
@@ -33,7 +33,7 @@ function insert_video_call_url(url, target_textarea) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function insert_audio_call_url(url, target_textarea) {
|
function insert_audio_call_url(url, target_textarea) {
|
||||||
const link_text = $t({defaultMessage: "Join audio call."});
|
const link_text = $t({defaultMessage: "Join voice 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<a role="button" class="markdown_preview compose_control_button fa fa-eye" aria-label="{{t 'Preview' }}" tabindex=0 data-tippy-content="{{t 'Preview' }}"></a>
|
<a role="button" class="markdown_preview compose_control_button fa fa-eye" aria-label="{{t 'Preview' }}" tabindex=0 data-tippy-content="{{t 'Preview' }}"></a>
|
||||||
<a role="button" class="undo_markdown_preview compose_control_button fa fa-edit" aria-label="{{t 'Write' }}" tabindex=0 style="display:none;" data-tippy-content="{{t 'Write' }}"></a>
|
<a role="button" class="undo_markdown_preview compose_control_button fa fa-edit" aria-label="{{t 'Write' }}" tabindex=0 style="display:none;" data-tippy-content="{{t 'Write' }}"></a>
|
||||||
<div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add audio call' }}">
|
<div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add voice call' }}">
|
||||||
<a role="button" class="compose_control_button fa fa-phone audio_link" aria-label="{{t 'Add audio call' }}" tabindex=0></a>
|
<a role="button" class="compose_control_button fa fa-phone audio_link" aria-label="{{t 'Add voice call' }}" tabindex=0></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add video call' }}">
|
<div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add video call' }}">
|
||||||
<a role="button" class="compose_control_button fa fa-video-camera video_link" aria-label="{{t 'Add video call' }}" tabindex=0></a>
|
<a role="button" class="compose_control_button fa fa-video-camera video_link" aria-label="{{t 'Add video call' }}" tabindex=0></a>
|
||||||
|
@@ -197,7 +197,7 @@ test("videos", ({override}) => {
|
|||||||
$("#compose-textarea").val("");
|
$("#compose-textarea").val("");
|
||||||
const audio_handler = $("body").get_on_handler("click", ".audio_link");
|
const audio_handler = $("body").get_on_handler("click", ".audio_link");
|
||||||
audio_handler(ev);
|
audio_handler(ev);
|
||||||
const audio_link_regex = /\[translated: Join audio call\.]\(example\.zoom\.com\)/;
|
const audio_link_regex = /\[translated: Join voice call\.]\(example\.zoom\.com\)/;
|
||||||
assert.ok(called);
|
assert.ok(called);
|
||||||
assert.match(syntax_to_insert, audio_link_regex);
|
assert.match(syntax_to_insert, audio_link_regex);
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user