tnx-shared 5.3.181 → 5.3.183
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/tnx-shared.umd.js +9 -3
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/data-form-base.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +8 -3
- package/fesm2015/tnx-shared.js +7 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -18304,8 +18304,6 @@
|
|
|
18304
18304
|
}
|
|
18305
18305
|
};
|
|
18306
18306
|
DataFormBase.prototype.ngAfterViewInit = function () {
|
|
18307
|
-
this.messageInsertSuccess = this._translateService.instant('MESSAGE.INSERT_DATA_SUCCESS');
|
|
18308
|
-
this.messageUpdateSuccess = this._translateService.instant('MESSAGE.UPDATE_DATA_SUCCESS');
|
|
18309
18307
|
};
|
|
18310
18308
|
DataFormBase.prototype.checkPermission = function (basePermission) {
|
|
18311
18309
|
if (this.isBaseModel) {
|
|
@@ -18420,7 +18418,10 @@
|
|
|
18420
18418
|
return __awaiter(this, void 0, void 0, function () {
|
|
18421
18419
|
return __generator(this, function (_e) {
|
|
18422
18420
|
switch (_e.label) {
|
|
18423
|
-
case 0:
|
|
18421
|
+
case 0:
|
|
18422
|
+
this.messageInsertSuccess = this._translateService.instant('MESSAGE.INSERT_DATA_SUCCESS');
|
|
18423
|
+
this.messageUpdateSuccess = this._translateService.instant('MESSAGE.UPDATE_DATA_SUCCESS');
|
|
18424
|
+
return [4 /*yield*/, this.__handleFormReady(formEvent)];
|
|
18424
18425
|
case 1:
|
|
18425
18426
|
_e.sent();
|
|
18426
18427
|
return [2 /*return*/];
|
|
@@ -19066,6 +19067,9 @@
|
|
|
19066
19067
|
DataFormBase.prototype.showMessageAfterInsert = function (isSuccess, error) {
|
|
19067
19068
|
if (isSuccess === void 0) { isSuccess = false; }
|
|
19068
19069
|
if (isSuccess) {
|
|
19070
|
+
if (!this.messageInsertSuccess) {
|
|
19071
|
+
this.messageInsertSuccess = this._translateService.instant('MESSAGE.INSERT_DATA_SUCCESS');
|
|
19072
|
+
}
|
|
19069
19073
|
if (this.messageInsertSuccess) {
|
|
19070
19074
|
this._notifierService.showSuccess(this.messageInsertSuccess);
|
|
19071
19075
|
}
|
|
@@ -19077,6 +19081,8 @@
|
|
|
19077
19081
|
DataFormBase.prototype.showMessageAfterUpdate = function (isSuccess, error) {
|
|
19078
19082
|
if (isSuccess === void 0) { isSuccess = false; }
|
|
19079
19083
|
if (isSuccess) {
|
|
19084
|
+
if (!this.messageUpdateSuccess)
|
|
19085
|
+
this.messageUpdateSuccess = this._translateService.instant('MESSAGE.UPDATE_DATA_SUCCESS');
|
|
19080
19086
|
if (this.messageUpdateSuccess) {
|
|
19081
19087
|
this._notifierService.showSuccess(this.messageUpdateSuccess);
|
|
19082
19088
|
}
|