X button for mobile edits in composer

This commit is contained in:
Kris 2018-03-28 20:47:04 -04:00
parent 98faf2878e
commit 6e569e5bfd
1 changed files with 8 additions and 1 deletions

View File

@ -104,11 +104,18 @@
label=model.saveLabel label=model.saveLabel
disableSubmit=disableSubmit}} disableSubmit=disableSubmit}}
{{#if site.mobileView}} {{#if site.mobileView}}
<a href {{action "cancel"}} class='cancel' tabindex="6" title="{{i18n 'cancel'}}">{{d-icon "trash-o"}}</a> <a href {{action "cancel"}} class='cancel' tabindex="6" title="{{i18n 'cancel'}}">
{{#if canEdit}}
{{d-icon "times"}}
{{else}}
{{d-icon "trash-o"}}
{{/if}}
</a>
{{else}} {{else}}
<a href {{action "cancel"}} class='cancel' tabindex="6" >{{i18n 'cancel'}}</a> <a href {{action "cancel"}} class='cancel' tabindex="6" >{{i18n 'cancel'}}</a>
{{/if}} {{/if}}
{{#if site.mobileView}} {{#if site.mobileView}}
{{#if whisperOrUnlistTopic}} {{#if whisperOrUnlistTopic}}
<span class='whisper'> <span class='whisper'>