@esfaenza/extensions 13.3.5 → 13.3.6
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.
|
@@ -292,7 +292,9 @@ class MessageService {
|
|
|
292
292
|
*/
|
|
293
293
|
manageCallResultResponse(response, successMsg, errorMsg, postSuccess = null, postFailure = null) {
|
|
294
294
|
if (response.success) {
|
|
295
|
-
if (
|
|
295
|
+
if (response.haswarning)
|
|
296
|
+
this.simpleWarning(response.warning);
|
|
297
|
+
else if (successMsg)
|
|
296
298
|
this.simpleSuccess(successMsg);
|
|
297
299
|
if (postSuccess)
|
|
298
300
|
postSuccess();
|
|
@@ -302,9 +304,6 @@ class MessageService {
|
|
|
302
304
|
if (postFailure)
|
|
303
305
|
postFailure();
|
|
304
306
|
}
|
|
305
|
-
else if (response.haswarning) {
|
|
306
|
-
this.simpleWarning(response.warning);
|
|
307
|
-
}
|
|
308
307
|
}
|
|
309
308
|
/**
|
|
310
309
|
* Metodo helper per gestire in maniera standardizzata una risposta di tipo **string**, considerando che:
|