Remove wrench icon and auto-close options from composer. The same options are available after the topic has been created.
This commit is contained in:
parent
9d23cfcece
commit
bfc8c65212
|
@ -52,11 +52,6 @@ Discourse.Composer = Discourse.Model.extend({
|
|||
canEditTitle: Em.computed.or('creatingTopic', 'creatingPrivateMessage', 'editingFirstPost'),
|
||||
canCategorize: Em.computed.and('canEditTitle', 'notCreatingPrivateMessage'),
|
||||
|
||||
showAdminOptions: function() {
|
||||
if (this.get('creatingTopic') && Discourse.User.currentProp('staff')) return true;
|
||||
return false;
|
||||
}.property('canEditTitle'),
|
||||
|
||||
// Determine the appropriate title for this action
|
||||
actionTitle: function() {
|
||||
var topic = this.get('topic');
|
||||
|
|
|
@ -48,16 +48,9 @@
|
|||
{{#if model.archetype.hasOptions}}
|
||||
<button class='btn' {{action showOptions}}>{{i18n topic.options}}</button>
|
||||
{{/if}}
|
||||
{{#if model.showAdminOptions}}
|
||||
<button {{action toggleAdminOptions target="view"}} class="btn no-text show-admin-options" title='{{i18n composer.admin_options_title}}'><i class="fa fa-wrench"></i></button>
|
||||
{{/if}}
|
||||
{{render additionalComposerButtons model}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
||||
<div class="admin-options-form">
|
||||
{{auto-close-form autoCloseTime=model.auto_close_time}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class='wmd-controls'>
|
||||
|
|
Loading…
Reference in New Issue