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:
parent
bae1245d47
commit
aee9345886
14 changed files with 141 additions and 207 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue