wait for the attachments to be loaded before displaying the edit component

pull/7738/head
ulferts 5 years ago
parent 09fc6ee736
commit 5a87032448
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 9
      frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts

@ -63,10 +63,11 @@ export class WidgetCustomTextComponent extends AbstractWidgetComponent implement
return;
}
// load the attachments so that they are displayed in the list;
this.resource.grid.updateAttachments();
this.handler.activate();
// Load the attachments so that they are displayed in the list.
// Once that is done, we can show the edit form.
this.resource.grid.updateAttachments().then(() => {
this.handler.activate();
});
}
public get placeholderText() {

Loading…
Cancel
Save