@stemy/ngx-utils 19.6.9 → 19.6.10
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.
|
@@ -3611,7 +3611,7 @@ class BaseDialogService {
|
|
|
3611
3611
|
message: config.message,
|
|
3612
3612
|
messageContext: config.messageContext,
|
|
3613
3613
|
size: config.size,
|
|
3614
|
-
buttons:
|
|
3614
|
+
buttons: [
|
|
3615
3615
|
{
|
|
3616
3616
|
text: config.okText,
|
|
3617
3617
|
classes: config.okClasses,
|
|
@@ -3627,6 +3627,22 @@ class BaseDialogService {
|
|
|
3627
3627
|
templates: config.templates
|
|
3628
3628
|
});
|
|
3629
3629
|
}
|
|
3630
|
+
confirmMsg(message, config) {
|
|
3631
|
+
return new Promise(resolve => {
|
|
3632
|
+
this.confirm({
|
|
3633
|
+
...(config || {}),
|
|
3634
|
+
message,
|
|
3635
|
+
method: async () => {
|
|
3636
|
+
resolve(true);
|
|
3637
|
+
return null;
|
|
3638
|
+
},
|
|
3639
|
+
cancelMethod: async () => {
|
|
3640
|
+
resolve(false);
|
|
3641
|
+
return null;
|
|
3642
|
+
}
|
|
3643
|
+
});
|
|
3644
|
+
});
|
|
3645
|
+
}
|
|
3630
3646
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BaseDialogService, deps: [{ token: TOASTER_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3631
3647
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BaseDialogService }); }
|
|
3632
3648
|
}
|