1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Sync two editions and deal with the diff

This commit is contained in:
Harvey Kandola 2018-06-06 13:59:12 +01:00
parent 372b3f3692
commit 9a3259b60e
12 changed files with 128 additions and 160 deletions

View file

@ -23,14 +23,6 @@ export default Controller.extend(NotifierMixin, {
filteredDocs: null,
actions: {
onAddSpace(payload) {
let self = this;
this.get('folderService').add(payload).then(function (newFolder) {
self.get('folderService').setCurrentFolder(newFolder);
self.transitionToRoute('folder', newFolder.get('id'), newFolder.get('slug'));
});
},
onDeleteSpace(id) {
this.get('folderService').delete(id).then(() => { /* jshint ignore:line */
this.get('localStorage').clearSessionItem('folder');