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:
Neil Lalonde 2014-03-25 14:07:05 -04:00
parent 9d23cfcece
commit bfc8c65212
2 changed files with 0 additions and 12 deletions

View File

@ -52,11 +52,6 @@ Discourse.Composer = Discourse.Model.extend({
canEditTitle: Em.computed.or('creatingTopic', 'creatingPrivateMessage', 'editingFirstPost'), canEditTitle: Em.computed.or('creatingTopic', 'creatingPrivateMessage', 'editingFirstPost'),
canCategorize: Em.computed.and('canEditTitle', 'notCreatingPrivateMessage'), 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 // Determine the appropriate title for this action
actionTitle: function() { actionTitle: function() {
var topic = this.get('topic'); var topic = this.get('topic');

View File

@ -48,16 +48,9 @@
{{#if model.archetype.hasOptions}} {{#if model.archetype.hasOptions}}
<button class='btn' {{action showOptions}}>{{i18n topic.options}}</button> <button class='btn' {{action showOptions}}>{{i18n topic.options}}</button>
{{/if}} {{/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}} {{render additionalComposerButtons model}}
{{/unless}} {{/unless}}
</div> </div>
<div class="admin-options-form">
{{auto-close-form autoCloseTime=model.auto_close_time}}
</div>
{{/if}} {{/if}}
<div class='wmd-controls'> <div class='wmd-controls'>