osl-base-extended 1.1.23 → 1.1.24
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.
|
@@ -2556,13 +2556,16 @@ class OslSetup {
|
|
|
2556
2556
|
this._dialogRef = null;
|
|
2557
2557
|
}
|
|
2558
2558
|
async saveDialog() {
|
|
2559
|
+
let isSuccess = false;
|
|
2559
2560
|
if (this.onSave) {
|
|
2560
2561
|
this.saveLoading = true;
|
|
2561
|
-
await this.onSave({ model: { ...this.dialogModel }, mode: this.dialogMode });
|
|
2562
|
+
isSuccess = await this.onSave({ model: { ...this.dialogModel }, mode: this.dialogMode });
|
|
2562
2563
|
this.saveLoading = false;
|
|
2563
2564
|
}
|
|
2564
|
-
|
|
2565
|
-
|
|
2565
|
+
if (isSuccess) {
|
|
2566
|
+
this._dialogRef?.close();
|
|
2567
|
+
this._dialogRef = null;
|
|
2568
|
+
}
|
|
2566
2569
|
}
|
|
2567
2570
|
_openDialog() {
|
|
2568
2571
|
this._dialogRef = this._injector.get(MatDialog).open(DialogWrapper, {
|