@sumaris-net/ngx-components 2.4.90-rc4 → 2.4.90-rc5
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/src/app/core/form/entity/entity-editor-modal.class.mjs +2 -2
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +3 -3
- package/esm2020/src/app/core/graphql/graphql.service.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +4 -4
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +4 -4
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -17030,7 +17030,7 @@ class GraphqlService extends StartableService {
|
|
|
17030
17030
|
};
|
|
17031
17031
|
if (appError.code !== error.code || appError.message !== error.message) {
|
|
17032
17032
|
// Store original error in details
|
|
17033
|
-
appError.details =
|
|
17033
|
+
appError.details = error;
|
|
17034
17034
|
return appError;
|
|
17035
17035
|
}
|
|
17036
17036
|
// Keep error (with details, if any)
|
|
@@ -29390,8 +29390,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
29390
29390
|
}
|
|
29391
29391
|
catch (err) {
|
|
29392
29392
|
this.submitted = true;
|
|
29393
|
+
this.selectedTabIndex = 0; // Can be override by subclasses, using setError()
|
|
29393
29394
|
this.setError(err);
|
|
29394
|
-
this.selectedTabIndex = 0;
|
|
29395
29395
|
this.scrollToTop(); // Scroll to top (to show error)
|
|
29396
29396
|
this.markAsDirty();
|
|
29397
29397
|
this.enable();
|
|
@@ -29456,8 +29456,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
29456
29456
|
}
|
|
29457
29457
|
catch (err) {
|
|
29458
29458
|
this.submitted = true;
|
|
29459
|
-
this.setError(err);
|
|
29460
29459
|
this.selectedTabIndex = 0;
|
|
29460
|
+
this.setError(err);
|
|
29461
29461
|
this.markAsSaved();
|
|
29462
29462
|
this.enable();
|
|
29463
29463
|
return false;
|
|
@@ -29950,8 +29950,8 @@ class AppEntityEditorModal extends AppTabEditor {
|
|
|
29950
29950
|
}
|
|
29951
29951
|
catch (err) {
|
|
29952
29952
|
this.submitted = true;
|
|
29953
|
+
this.selectedTabIndex = 0; // Can by override by subclasses, using setError()
|
|
29953
29954
|
this.setError(err);
|
|
29954
|
-
this.selectedTabIndex = 0;
|
|
29955
29955
|
this.scrollToTop(); // Scroll to top (to show error)
|
|
29956
29956
|
this.markAsDirty();
|
|
29957
29957
|
this.enable();
|