1
0
Fork 0
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:
McMatts 2018-05-30 11:27:29 +01:00
parent c5561491a2
commit c7cc36b307
12 changed files with 77 additions and 80 deletions

View file

@ -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);
});
},