hide tags-admin-dropdown unless you are staff
This commit is contained in:
parent
f3f6c2f98f
commit
0181f22c70
|
@ -1,6 +1,8 @@
|
||||||
export default Ember.Controller.extend({
|
export default Ember.Controller.extend({
|
||||||
sortProperties: ['count:desc', 'id'],
|
sortProperties: ['count:desc', 'id'],
|
||||||
|
|
||||||
|
canAdminTags: Ember.computed.alias("currentUser.staff"),
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
sortByCount() {
|
sortByCount() {
|
||||||
this.set('sortProperties', ['count:desc', 'id']);
|
this.set('sortProperties', ['count:desc', 'id']);
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
|
|
||||||
<div class="list-controls">
|
<div class="list-controls">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{tags-admin-dropdown}}
|
{{#if canAdminTags}}
|
||||||
|
{{tags-admin-dropdown}}
|
||||||
|
{{/if}}
|
||||||
<h2>{{i18n "tagging.tags"}}</h2>
|
<h2>{{i18n "tagging.tags"}}</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue