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

delete docs moved to new UX

This commit is contained in:
Harvey Kandola 2017-11-22 13:39:46 +00:00
parent 9cbee80f51
commit bae1245d47
13 changed files with 199 additions and 89 deletions

View file

@ -99,8 +99,7 @@ export default Component.extend(NotifierMixin, TooltipMixin, AuthMixin, {
this.send("showNotification", "Moved");
},
onDeleteDocument() {
let documents = this.get('selectedDocuments');
onDeleteDocument(documents) {
let self = this;
let promises = [];
@ -113,10 +112,9 @@ export default Component.extend(NotifierMixin, TooltipMixin, AuthMixin, {
documents.forEach(function (document) {
document.set('selected', false);
});
this.set('documents', documents);
this.set('documents', documents);
this.set('selectedDocuments', []);
this.send("showNotification", "Deleted");
this.attrs.onRefresh();
});
},