mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Add missing labels to mobile composer buttons
This commit is contained in:
parent
a14c9078d3
commit
13c9d7e704
@ -11,6 +11,11 @@ export default Component.extend({
|
|||||||
: "composer.collapse";
|
: "composer.collapse";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@discourseComputed("showToolbar")
|
||||||
|
toggleToolbarTitle(showToolbar) {
|
||||||
|
return showToolbar ? "composer.hide_toolbar" : "composer.show_toolbar";
|
||||||
|
},
|
||||||
|
|
||||||
@discourseComputed("composeState")
|
@discourseComputed("composeState")
|
||||||
fullscreenTitle(composeState) {
|
fullscreenTitle(composeState) {
|
||||||
return composeState === "draft"
|
return composeState === "draft"
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
{{flat-button
|
{{flat-button
|
||||||
class="toggle-toolbar"
|
class="toggle-toolbar"
|
||||||
icon="bars"
|
icon="bars"
|
||||||
action=toggleToolbar}}
|
action=toggleToolbar
|
||||||
|
title=toggleToolbarTitle}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{flat-button
|
{{flat-button
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{composer-toggles composeState=model.composeState
|
{{composer-toggles composeState=model.composeState showToolbar=showToolbar
|
||||||
toggleComposer=(action "toggle")
|
toggleComposer=(action "toggle")
|
||||||
toggleToolbar=(action "toggleToolbar")
|
toggleToolbar=(action "toggleToolbar")
|
||||||
toggleFullscreen=(action "fullscreenComposer")}}
|
toggleFullscreen=(action "fullscreenComposer")}}
|
||||||
@ -190,12 +190,12 @@
|
|||||||
|
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
{{#if allowUpload}}
|
{{#if allowUpload}}
|
||||||
<a class="btn btn-default no-text mobile-file-upload {{if isUploading "hidden"}}">
|
<a class="btn btn-default no-text mobile-file-upload {{if isUploading "hidden"}}" aria-label={{i18n "composer.upload_title"}}>
|
||||||
{{d-icon uploadIcon}}
|
{{d-icon uploadIcon}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<a href class="btn btn-default no-text mobile-preview" title={{i18n "composer.show_preview"}} {{action "togglePreview"}}>
|
<a href class="btn btn-default no-text mobile-preview" title={{i18n "composer.show_preview"}} {{action "togglePreview"}} aria-label={{i18n "preview"}}>
|
||||||
{{d-icon "desktop"}}
|
{{d-icon "desktop"}}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -1758,7 +1758,6 @@ en:
|
|||||||
lora: "Lora"
|
lora: "Lora"
|
||||||
mukta: "Mukta"
|
mukta: "Mukta"
|
||||||
|
|
||||||
|
|
||||||
shortcut_modifier_key:
|
shortcut_modifier_key:
|
||||||
shift: "Shift"
|
shift: "Shift"
|
||||||
ctrl: "Ctrl"
|
ctrl: "Ctrl"
|
||||||
@ -1919,6 +1918,8 @@ en:
|
|||||||
abandon: "close composer and discard draft"
|
abandon: "close composer and discard draft"
|
||||||
enter_fullscreen: "enter fullscreen composer"
|
enter_fullscreen: "enter fullscreen composer"
|
||||||
exit_fullscreen: "exit fullscreen composer"
|
exit_fullscreen: "exit fullscreen composer"
|
||||||
|
show_toolbar: "show composer toolbar"
|
||||||
|
hide_toolbar: "hide composer toolbar"
|
||||||
modal_ok: "OK"
|
modal_ok: "OK"
|
||||||
modal_cancel: "Cancel"
|
modal_cancel: "Cancel"
|
||||||
cant_send_pm: "Sorry, you can't send a message to %{username}."
|
cant_send_pm: "Sorry, you can't send a message to %{username}."
|
||||||
|
Loading…
Reference in New Issue
Block a user