mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Move attachments into meta zone
This commit is contained in:
parent
c5561491a2
commit
c7cc36b307
12 changed files with 77 additions and 80 deletions
|
@ -15,6 +15,7 @@ import { inject as service } from '@ember/service';
|
|||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
classNames: ['row d-print-none'],
|
||||
documentService: service('document'),
|
||||
appMeta: service(),
|
||||
hasAttachments: notEmpty('files'),
|
||||
|
@ -82,7 +83,6 @@ export default Component.extend({
|
|||
getAttachments() {
|
||||
this.get('documentService').getAttachments(this.get('document.id')).then((files) => {
|
||||
this.set('files', files);
|
||||
this.get('onReady')(files.length);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue