1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00

Link to category admin UI from space settings

Shortcut for better UX
This commit is contained in:
Harvey Kandola 2018-06-05 15:47:58 +01:00
parent 92f8fe550e
commit fcd95cf415
2 changed files with 13 additions and 10 deletions

View file

@ -14,6 +14,7 @@ import NotifierMixin from '../../../mixins/notifier';
import Controller from '@ember/controller';
export default Controller.extend(NotifierMixin, {
router: service(),
folderService: service('folder'),
localStorage: service('localStorage'),
tab: 'general',
@ -23,6 +24,10 @@ export default Controller.extend(NotifierMixin, {
this.set('tab', view);
},
onCategories() {
this.get('router').transitionTo('folder.category');
},
onRefresh() {
this.get('target._routerMicrolib').refresh();
}