mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Move space deletion & archived docs into Space settings
This commit is contained in:
parent
b37f9d601f
commit
7e959b448c
17 changed files with 98 additions and 169 deletions
|
@ -25,13 +25,6 @@ export default Controller.extend(NotifierMixin, {
|
|||
filteredDocs: null,
|
||||
|
||||
actions: {
|
||||
onDeleteSpace(id) {
|
||||
this.get('folderService').delete(id).then(() => { /* jshint ignore:line */
|
||||
this.get('localStorage').clearSessionItem('folder');
|
||||
this.transitionToRoute('folders');
|
||||
});
|
||||
},
|
||||
|
||||
onRefresh() {
|
||||
this.get('target._routerMicrolib').refresh();
|
||||
},
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
category=category
|
||||
categories=model.categories
|
||||
documents=filteredDocs
|
||||
onRefresh=(action 'onRefresh')
|
||||
onDeleteSpace=(action 'onDeleteSpace')}}
|
||||
onRefresh=(action 'onRefresh')}}
|
||||
|
||||
{{folder/documents-list
|
||||
documents=filteredDocs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue