@crowdfarming/oliva-ds 1.66.0 → 1.67.0
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.
|
@@ -5424,8 +5424,8 @@ class ModalService {
|
|
|
5424
5424
|
this.closeAll();
|
|
5425
5425
|
});
|
|
5426
5426
|
}
|
|
5427
|
-
closeAll() {
|
|
5428
|
-
const modalsToClose = Array.from(this.openModals.values());
|
|
5427
|
+
closeAll({ force = false } = {}) {
|
|
5428
|
+
const modalsToClose = Array.from(this.openModals.values()).filter((entry) => force || !entry.persist);
|
|
5429
5429
|
modalsToClose.forEach((entry) => {
|
|
5430
5430
|
entry.modalRefResult.close();
|
|
5431
5431
|
});
|
|
@@ -5485,6 +5485,7 @@ class ModalService {
|
|
|
5485
5485
|
resolvePromise: resolvePromise,
|
|
5486
5486
|
result,
|
|
5487
5487
|
modalRefResult,
|
|
5488
|
+
persist: config.persist ?? false,
|
|
5488
5489
|
};
|
|
5489
5490
|
// Update resolvePromise reference after Promise executor runs
|
|
5490
5491
|
afterClosedPromise.then(() => { }).catch(() => { });
|