tnx-shared 5.3.317 → 5.3.318
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 +8 -10
- 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/components/tn-app-notification/tn-app-notification.component.d.ts.map +1 -1
- package/esm2015/components/tn-app-notification/tn-app-notification.component.js +2 -4
- package/fesm2015/tnx-shared.js +1 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -53173,8 +53173,8 @@
|
|
|
53173
53173
|
TnAppNotificationComponent.prototype.afterGetNotication = function () {
|
|
53174
53174
|
return __awaiter(this, void 0, void 0, function () {
|
|
53175
53175
|
var idsUserCreated, userRes, lstUserInfo;
|
|
53176
|
-
return __generator(this, function (
|
|
53177
|
-
switch (
|
|
53176
|
+
return __generator(this, function (_a) {
|
|
53177
|
+
switch (_a.label) {
|
|
53178
53178
|
case 0:
|
|
53179
53179
|
idsUserCreated = [];
|
|
53180
53180
|
this.notifications.forEach(function (element) {
|
|
@@ -53188,7 +53188,7 @@
|
|
|
53188
53188
|
}
|
|
53189
53189
|
return [4 /*yield*/, this._userV5Service.getAll([this.newFilter('id', exports.Operator.in, idsUserCreated)], 'avatar,id')];
|
|
53190
53190
|
case 1:
|
|
53191
|
-
userRes =
|
|
53191
|
+
userRes = _a.sent();
|
|
53192
53192
|
if (!userRes.success || !userRes.data || userRes.data.length === 0) {
|
|
53193
53193
|
return [2 /*return*/];
|
|
53194
53194
|
}
|
|
@@ -53240,15 +53240,15 @@
|
|
|
53240
53240
|
TnAppNotificationComponent.prototype.goToLink = function (item) {
|
|
53241
53241
|
return __awaiter(this, void 0, void 0, function () {
|
|
53242
53242
|
var link;
|
|
53243
|
-
return __generator(this, function (
|
|
53244
|
-
switch (
|
|
53243
|
+
return __generator(this, function (_a) {
|
|
53244
|
+
switch (_a.label) {
|
|
53245
53245
|
case 0:
|
|
53246
53246
|
if (!!this.isReaded(item)) return [3 /*break*/, 2];
|
|
53247
53247
|
return [4 /*yield*/, this.readById(item)];
|
|
53248
53248
|
case 1:
|
|
53249
|
-
|
|
53249
|
+
_a.sent();
|
|
53250
53250
|
this.totalUnRead--;
|
|
53251
|
-
|
|
53251
|
+
_a.label = 2;
|
|
53252
53252
|
case 2:
|
|
53253
53253
|
// Save current path to go back
|
|
53254
53254
|
localStorage.setItem('currentUrl', top.location.href);
|
|
@@ -53284,9 +53284,7 @@
|
|
|
53284
53284
|
this.bounceNoti = false;
|
|
53285
53285
|
};
|
|
53286
53286
|
TnAppNotificationComponent.prototype.handleClicked = function () {
|
|
53287
|
-
|
|
53288
|
-
var appCode = (_a = window['appCode']) !== null && _a !== void 0 ? _a : '';
|
|
53289
|
-
this._router.navigateByUrl("/" + appCode.toLowerCase() + "/thong-bao");
|
|
53287
|
+
top.location.href = window['baseHref'] + '/thong-bao';
|
|
53290
53288
|
};
|
|
53291
53289
|
return TnAppNotificationComponent;
|
|
53292
53290
|
}(ComponentBase));
|