mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Link to category admin UI from space settings
Shortcut for better UX
This commit is contained in:
parent
92f8fe550e
commit
fcd95cf415
2 changed files with 13 additions and 10 deletions
|
@ -14,6 +14,7 @@ import NotifierMixin from '../../../mixins/notifier';
|
||||||
import Controller from '@ember/controller';
|
import Controller from '@ember/controller';
|
||||||
|
|
||||||
export default Controller.extend(NotifierMixin, {
|
export default Controller.extend(NotifierMixin, {
|
||||||
|
router: service(),
|
||||||
folderService: service('folder'),
|
folderService: service('folder'),
|
||||||
localStorage: service('localStorage'),
|
localStorage: service('localStorage'),
|
||||||
tab: 'general',
|
tab: 'general',
|
||||||
|
@ -23,6 +24,10 @@ export default Controller.extend(NotifierMixin, {
|
||||||
this.set('tab', view);
|
this.set('tab', view);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onCategories() {
|
||||||
|
this.get('router').transitionTo('folder.category');
|
||||||
|
},
|
||||||
|
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
this.get('target._routerMicrolib').refresh();
|
this.get('target._routerMicrolib').refresh();
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,16 +36,14 @@
|
||||||
|
|
||||||
{{#layout/middle-zone-sidebar}}
|
{{#layout/middle-zone-sidebar}}
|
||||||
<div id="sidebar" class="sidebar">
|
<div id="sidebar" class="sidebar">
|
||||||
<h1>{{model.folder.name}}</h1>
|
<ul class="tabnav-control tabnav-control-centered w-75">
|
||||||
<div class="margin-top-50">
|
<li class="tab tab-vertical {{if (eq tab 'general') 'selected'}}" {{action 'onTab' 'general'}}>Options</li>
|
||||||
<ul class="tabnav-control tabnav-control-centered w-75">
|
<li class="tab tab-vertical {{if (eq tab 'permissions') 'selected'}}" {{action 'onTab' 'permissions'}}>Permissions</li>
|
||||||
<li class="tab tab-vertical {{if (eq tab 'general') 'selected'}}" {{action 'onTab' 'general'}}>Options</li>
|
<li class="tab tab-vertical {{if (eq tab 'invitations') 'selected'}}" {{action 'onTab' 'invitations'}}>Invite Users</li>
|
||||||
<li class="tab tab-vertical {{if (eq tab 'permissions') 'selected'}}" {{action 'onTab' 'permissions'}}>Permissions</li>
|
<li class="tab tab-vertical {{if (eq tab 'templates') 'selected'}}" {{action 'onTab' 'templates'}}>Document Templates</li>
|
||||||
<li class="tab tab-vertical {{if (eq tab 'invitations') 'selected'}}" {{action 'onTab' 'invitations'}}>Invite Users</li>
|
<li class="tab tab-vertical {{if (eq tab 'blocks') 'selected'}}" {{action 'onTab' 'blocks'}}>Content Blocks</li>
|
||||||
<li class="tab tab-vertical {{if (eq tab 'templates') 'selected'}}" {{action 'onTab' 'templates'}}>Document Templates</li>
|
<li class="tab tab-vertical" {{action 'onCategories'}}>Categories</li>
|
||||||
<li class="tab tab-vertical {{if (eq tab 'blocks') 'selected'}}" {{action 'onTab' 'blocks'}}>Content Blocks</li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{/layout/middle-zone-sidebar}}
|
{{/layout/middle-zone-sidebar}}
|
||||||
{{/layout/middle-zone}}
|
{{/layout/middle-zone}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue