add classes to topic admin menu so it can be styles with css

This commit is contained in:
Neil Lalonde 2015-12-16 14:08:26 -05:00
parent e82dc21083
commit 650c2f271e
2 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
import { on } from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
classNameBindings: ["visible::hidden", ":popup-menu"],
classNameBindings: ["visible::hidden", ":popup-menu", "extraClasses"],
@on('didInsertElement')
_setup() {

View File

@ -153,24 +153,24 @@
{{#if currentUser.canManageTopic}}
{{show-popup-button action="showTopicAdminMenu" class="show-topic-admin" title="topic_admin_menu" icon="wrench"}}
{{#popup-menu visible=adminMenuVisible hide="hideTopicAdminMenu" title="admin_title"}}
<li>
{{#popup-menu visible=adminMenuVisible hide="hideTopicAdminMenu" title="admin_title" extraClasses="topic-admin-popup-menu"}}
<li class="topic-admin-multi-select">
{{d-button action="toggleMultiSelect" icon="tasks" label="topic.actions.multi_select"}}
</li>
{{#if model.details.can_delete}}
<li>
<li class="topic-admin-delete">
{{d-button action="deleteTopic" icon="trash-o" label="topic.actions.delete" class="btn-danger"}}
</li>
{{/if}}
{{#if showRecover}}
<li>
<li class="topic-admin-recover">
{{d-button action="recoverTopic" icon="undo" label="topic.actions.recover"}}
</li>
{{/if}}
<li>
<li class="topic-admin-autoclose">
{{#if model.closed}}
{{d-button action="toggleClosed" icon="unlock" label="topic.actions.open"}}
{{else}}
@ -181,7 +181,7 @@
{{#unless model.isPrivateMessage}}
{{#if model.visible}}
<li>
<li class="topic-admin-pin">
{{#if isFeatured}}
{{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.unpin"}}
{{else}}
@ -191,11 +191,11 @@
{{/if}}
{{/unless}}
<li>
<li class="topic-admin-change-timestamp">
{{d-button action="showChangeTimestamp" icon="calendar" label="topic.change_timestamp.title"}}
</li>
<li>
<li class="topic-admin-archive">
{{#if model.archived}}
{{d-button action="toggleArchived" icon="folder" label="topic.actions.unarchive"}}
{{else}}
@ -203,7 +203,7 @@
{{/if}}
</li>
<li>
<li class="topic-admin-visible">
{{#if model.visible}}
{{d-button action="toggleVisibility" icon="eye-slash" label="topic.actions.invisible"}}
{{else}}