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

move documents new UX

This commit is contained in:
Harvey Kandola 2017-11-22 16:28:17 +00:00
parent bae1245d47
commit aee9345886
14 changed files with 141 additions and 207 deletions

View file

@ -33,11 +33,21 @@ export default Route.extend(AuthenticatedRouteMixin, {
model() {
this.get('browser').setTitle(this.modelFor('folder').folder.get('name'));
let folders = this.modelFor('folder').folders;
folders.forEach(f => {
f.set('selected', false);
})
let documents = this.modelFor('folder').documents;
documents.forEach(d => {
d.set('selected', false);
})
return hash({
folder: this.modelFor('folder').folder,
permissions: this.modelFor('folder').permissions,
folders: this.modelFor('folder').folders,
documents: this.modelFor('folder').documents,
folders: folders,
documents: documents,
templates: this.modelFor('folder').templates,
showStartDocument: false,
rootDocCount: 0,