@sumaris-net/ngx-components 1.21.3 → 1.21.4
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/bundles/sumaris-net.ngx-components.umd.js +3 -5
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/entity-editor-modal.class.js +4 -6
- package/fesm2015/sumaris-net.ngx-components.js +3 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -30010,11 +30010,11 @@
|
|
|
30010
30010
|
};
|
|
30011
30011
|
AppEntityEditorModal.prototype.setError = function (err, opts) {
|
|
30012
30012
|
if (!err) {
|
|
30013
|
-
this
|
|
30013
|
+
_super_1.prototype.setError.call(this, undefined, opts);
|
|
30014
30014
|
}
|
|
30015
30015
|
else if (typeof err === 'string') {
|
|
30016
30016
|
console.error('[entity-editor] Error: ' + (err || ''));
|
|
30017
|
-
this
|
|
30017
|
+
_super_1.prototype.setError.call(this, err, opts);
|
|
30018
30018
|
}
|
|
30019
30019
|
else {
|
|
30020
30020
|
console.error('[entity-editor] Error: ' + err.message || '', err);
|
|
@@ -30029,10 +30029,8 @@
|
|
|
30029
30029
|
userMessage += detailMessage.length < 70 ? detailMessage : detailMessage.substring(0, 67) + '...';
|
|
30030
30030
|
userMessage += '</small>';
|
|
30031
30031
|
}
|
|
30032
|
-
this
|
|
30032
|
+
_super_1.prototype.setError.call(this, userMessage, opts);
|
|
30033
30033
|
}
|
|
30034
|
-
if (!opts || opts.emitEvent !== false)
|
|
30035
|
-
this.markForCheck();
|
|
30036
30034
|
};
|
|
30037
30035
|
/* -- protected methods -- */
|
|
30038
30036
|
AppEntityEditorModal.prototype.waitWhilePending = function (opts) {
|