@smartbit4all/ng-client 3.0.33 → 3.0.34
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/lib/view-context/smart-view-context.service.mjs +22 -22
- package/fesm2015/smartbit4all-ng-client.mjs +21 -21
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +21 -21
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.34.tgz +0 -0
- package/smartbit4all-ng-client-3.0.33.tgz +0 -0
|
@@ -2725,29 +2725,29 @@ class SmartViewContextService {
|
|
|
2725
2725
|
if (!viewHandler.component) {
|
|
2726
2726
|
throw new Error(`Component is undefined in SmartViewHandlerModel with name: ${view.viewName}`);
|
|
2727
2727
|
}
|
|
2728
|
-
let dialogRef = this.dialog.openComponentAsDialog(viewHandler.component, viewHandler.name);
|
|
2729
|
-
let dialogDisableClose = true;
|
|
2730
|
-
try {
|
|
2731
|
-
dialogDisableClose = this.inject.get(DIALOG_DISABLE_CLOSE);
|
|
2732
|
-
}
|
|
2733
|
-
catch {
|
|
2734
|
-
console.error('Error during reading DIALOG_DISABLE_CLOSE');
|
|
2735
|
-
}
|
|
2736
|
-
dialogRef.disableClose = dialogDisableClose;
|
|
2737
|
-
// if (view.viewName === this.messageDialogname) {
|
|
2738
|
-
// if (view.message?.options && view.message.options.length) {
|
|
2739
|
-
// }
|
|
2740
|
-
// }
|
|
2741
|
-
if (!dialogDisableClose) {
|
|
2742
|
-
dialogRef
|
|
2743
|
-
.afterClosed()
|
|
2744
|
-
.pipe(takeUntil(this._destroy$))
|
|
2745
|
-
.subscribe(() => {
|
|
2746
|
-
this.performAction(view.uuid, { code: DefaultUiActionCode_CLOSE, params: {} });
|
|
2747
|
-
});
|
|
2748
|
-
}
|
|
2749
2728
|
let refIsAlradyAdded = this.dialogRefs.some((ref) => ref.uuid === view.uuid);
|
|
2750
2729
|
if (!refIsAlradyAdded) {
|
|
2730
|
+
let dialogRef = this.dialog.openComponentAsDialog(viewHandler.component, viewHandler.name);
|
|
2731
|
+
let dialogDisableClose = true;
|
|
2732
|
+
try {
|
|
2733
|
+
dialogDisableClose = this.inject.get(DIALOG_DISABLE_CLOSE);
|
|
2734
|
+
}
|
|
2735
|
+
catch {
|
|
2736
|
+
console.error('Error during reading DIALOG_DISABLE_CLOSE');
|
|
2737
|
+
}
|
|
2738
|
+
dialogRef.disableClose = dialogDisableClose;
|
|
2739
|
+
// if (view.viewName === this.messageDialogname) {
|
|
2740
|
+
// if (view.message?.options && view.message.options.length) {
|
|
2741
|
+
// }
|
|
2742
|
+
// }
|
|
2743
|
+
if (!dialogDisableClose) {
|
|
2744
|
+
dialogRef
|
|
2745
|
+
.afterClosed()
|
|
2746
|
+
.pipe(takeUntil(this._destroy$))
|
|
2747
|
+
.subscribe(() => {
|
|
2748
|
+
this.performAction(view.uuid, { code: DefaultUiActionCode_CLOSE, params: {} });
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2751
2751
|
this.dialogRefs.push({
|
|
2752
2752
|
uuid: view.uuid,
|
|
2753
2753
|
dialogRef,
|