mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +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,
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
{{toolbar/for-space spaces=model.folders space=model.folder permissions=model.permissions onDeleteSpace=(action 'onDeleteSpace')}}
|
||||
|
||||
{{folder/space-view
|
||||
folders=model.folders
|
||||
folder=model.folder
|
||||
spaces=model.folders
|
||||
space=model.folder
|
||||
templates=model.templates
|
||||
permissions=model.permissions
|
||||
documents=model.documents
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue