@sumaris-net/ngx-components 2.6.13 → 2.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/app/social/message/message.modal.mjs +10 -8
- package/fesm2015/sumaris-net.ngx-components.mjs +9 -7
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +9 -7
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -35839,13 +35839,15 @@ class MessageModal {
|
|
|
35839
35839
|
this.canSelectType = toBoolean(this.canSelectType, this.accountService.isAdmin());
|
|
35840
35840
|
}
|
|
35841
35841
|
ngAfterViewInit() {
|
|
35842
|
-
|
|
35843
|
-
|
|
35844
|
-
|
|
35845
|
-
|
|
35846
|
-
|
|
35847
|
-
|
|
35848
|
-
|
|
35842
|
+
setTimeout(() => {
|
|
35843
|
+
this.form.markAsReady({ emitEvent: false });
|
|
35844
|
+
if (this.data) {
|
|
35845
|
+
this.data.type = this.data.type || MessageTypes.INBOX_MESSAGE;
|
|
35846
|
+
this.form.setValue(this.data);
|
|
35847
|
+
}
|
|
35848
|
+
this.form.markAsLoaded();
|
|
35849
|
+
this.form.enable();
|
|
35850
|
+
});
|
|
35849
35851
|
}
|
|
35850
35852
|
cancel(event) {
|
|
35851
35853
|
this.viewCtrl.dismiss();
|