@esfaenza/extensions 15.2.37 → 15.2.39
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/services/extensions.embedding.service.mjs +3 -2
- package/esm2020/lib/services/extensions.messages.service.mjs +6 -5
- package/fesm2015/esfaenza-extensions.mjs +8 -5
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +7 -5
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -967,16 +967,17 @@ class MessageService {
|
|
|
967
967
|
* @param {Function} postFailure Callback da chimare in caso di fallimento
|
|
968
968
|
*/
|
|
969
969
|
manageCallResultResponse(response, successMsg, errorMsg, postSuccess = null, postFailure = null) {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
970
|
+
let anyReponse = response;
|
|
971
|
+
if (response.success || anyReponse.Success) {
|
|
972
|
+
if (response.haswarning || anyReponse.HasWarning)
|
|
973
|
+
this.simpleWarning(response.warning || anyReponse.Warning);
|
|
973
974
|
else if (successMsg)
|
|
974
975
|
this.simpleSuccess(successMsg);
|
|
975
976
|
if (postSuccess)
|
|
976
977
|
postSuccess();
|
|
977
978
|
}
|
|
978
979
|
else {
|
|
979
|
-
this.simpleError((errorMsg ? errorMsg + ": " : "") + response.haserror ? response.error : '[NO ERR.]');
|
|
980
|
+
this.simpleError((errorMsg ? errorMsg + ": " : "") + (response.haserror || anyReponse.HasError) ? (response.error || anyReponse.Error) : '[NO ERR.]');
|
|
980
981
|
if (postFailure)
|
|
981
982
|
postFailure();
|
|
982
983
|
}
|
|
@@ -1061,7 +1062,8 @@ class AppEmbeddingExtensions {
|
|
|
1061
1062
|
this.MainWindow = this.MainWindow.parent;
|
|
1062
1063
|
this.EmbeddingLevel++;
|
|
1063
1064
|
this.Embedded = true;
|
|
1064
|
-
|
|
1065
|
+
// Fallback per farlo funzionare forzatamente mentre lo testo
|
|
1066
|
+
this.EmbeddedModule = this.location.path().match(/module=([a-zA-Z_]+)/)?.[1] || myconfig.AppData.ModuleId;
|
|
1065
1067
|
}
|
|
1066
1068
|
this.configureEmbeddability();
|
|
1067
1069
|
if (this.Embedded)
|