@stemy/ngx-utils 19.5.13 → 19.5.14
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.
|
@@ -5328,20 +5328,17 @@ class AsyncMethodBase {
|
|
|
5328
5328
|
this.loading.set(true);
|
|
5329
5329
|
const method = this.getMethod();
|
|
5330
5330
|
const result = !method ? null : method(this.context(), ev);
|
|
5331
|
-
console.log("Call", result);
|
|
5332
5331
|
if (!(result instanceof Promise)) {
|
|
5333
5332
|
this.loading.set(false);
|
|
5334
5333
|
return false;
|
|
5335
5334
|
}
|
|
5336
5335
|
result.then(result => {
|
|
5337
|
-
console.log("result", result);
|
|
5338
5336
|
this.loading.set(false);
|
|
5339
5337
|
if (result) {
|
|
5340
5338
|
this.onSuccess.emit(result);
|
|
5341
5339
|
this.toaster.success(result.message, result.context);
|
|
5342
5340
|
}
|
|
5343
5341
|
}, reason => {
|
|
5344
|
-
console.log("result", reason);
|
|
5345
5342
|
if (!reason || !reason.message)
|
|
5346
5343
|
throw new Error("Reason must implement IAsyncMessage interface");
|
|
5347
5344
|
this.loading.set(false);
|