mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
[WIP] PDF viewer section & per section attachments
This commit is contained in:
parent
c0ed3c3d04
commit
166aeba09b
428 changed files with 45874 additions and 802 deletions
|
@ -50,7 +50,8 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
permissions: this.modelFor('document').permissions,
|
||||
roles: this.modelFor('document').roles,
|
||||
blocks: this.modelFor('document').blocks,
|
||||
versions: this.modelFor('document').versions
|
||||
versions: this.modelFor('document').versions,
|
||||
attachments: this.modelFor('document').attachments
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -67,6 +68,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
controller.set('roles', model.roles);
|
||||
controller.set('blocks', model.blocks);
|
||||
controller.set('versions', model.versions);
|
||||
controller.set('attachments', model.attachments);
|
||||
},
|
||||
|
||||
activate: function () {
|
||||
|
|
|
@ -33,6 +33,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
this.set('roles', data.roles);
|
||||
this.set('links', data.links);
|
||||
this.set('versions', data.versions);
|
||||
this.set('attachments', data.attachments);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
@ -47,6 +48,7 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
roles: this.get('roles'),
|
||||
links: this.get('links'),
|
||||
versions: this.get('versions'),
|
||||
attachments: this.get('attachments'),
|
||||
sections: this.get('sectionService').getAll(),
|
||||
blocks: this.get('sectionService').getSpaceBlocks(this.get('folder.id'))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue