related records modal fetch when rendered
This commit is contained in:
@@ -436,13 +436,19 @@ class RelatedListModalView extends ModalView {
|
||||
}
|
||||
|
||||
const fetch = () => {
|
||||
// Timeout to make notify work.
|
||||
setTimeout(() => {
|
||||
this.whenRendered().then(() => {
|
||||
Espo.Ui.notify(' ... ');
|
||||
|
||||
this.collection.fetch()
|
||||
.then(() => Espo.Ui.notify(false));
|
||||
}, 1);
|
||||
});
|
||||
// Timeout to make notify work.
|
||||
/*setTimeout(() => {
|
||||
Espo.Ui.notify(' ... ');
|
||||
|
||||
this.collection.fetch()
|
||||
.then(() => Espo.Ui.notify(false));
|
||||
}, 1);*/
|
||||
};
|
||||
|
||||
if (this.options.forceSelectAllAttributes || this.forceSelectAllAttributes) {
|
||||
|
||||
@@ -297,13 +297,19 @@ class SelectRecordsModalView extends ModalView {
|
||||
}
|
||||
|
||||
const fetch = () => {
|
||||
// Timeout to make notify work.
|
||||
setTimeout(() => {
|
||||
this.whenRendered().then(() => {
|
||||
Espo.Ui.notify(' ... ');
|
||||
|
||||
this.collection.fetch()
|
||||
.then(() => Espo.Ui.notify(false));
|
||||
}, 1);
|
||||
});
|
||||
// Timeout to make notify work.
|
||||
/*setTimeout(() => {
|
||||
Espo.Ui.notify(' ... ');
|
||||
|
||||
this.collection.fetch()
|
||||
.then(() => Espo.Ui.notify(false));
|
||||
}, 1);*/
|
||||
};
|
||||
|
||||
if (this.options.forceSelectAllAttributes || this.forceSelectAllAttributes) {
|
||||
|
||||
Reference in New Issue
Block a user