mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
delete space, pin space migrated to new UX
This commit is contained in:
parent
acc947c2ed
commit
9cbee80f51
11 changed files with 212 additions and 138 deletions
|
@ -18,8 +18,6 @@ export default Controller.extend(NotifierMixin, {
|
|||
documentService: service('document'),
|
||||
folderService: service('folder'),
|
||||
localStorage: service('localStorage'),
|
||||
queryParams: ['tab'],
|
||||
tab: 'index',
|
||||
|
||||
actions: {
|
||||
onAddSpace(payload) {
|
||||
|
@ -32,6 +30,14 @@ export default Controller.extend(NotifierMixin, {
|
|||
});
|
||||
},
|
||||
|
||||
onDeleteSpace(id) {
|
||||
this.get('folderService').delete(id).then(() => { /* jshint ignore:line */
|
||||
this.showNotification("Deleted");
|
||||
this.get('localStorage').clearSessionItem('folder');
|
||||
this.transitionToRoute('folders');
|
||||
});
|
||||
},
|
||||
|
||||
onRefresh() {
|
||||
this.get('target._routerMicrolib').refresh();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue