zek 19.0.3 → 19.0.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/fesm2022/zek.mjs
CHANGED
|
@@ -1540,6 +1540,9 @@ class AuthService {
|
|
|
1540
1540
|
const user = StorageHelper.get(AuthService.USER_KEY);
|
|
1541
1541
|
if (user) {
|
|
1542
1542
|
this._init(user);
|
|
1543
|
+
if (this._isAuthenticated) {
|
|
1544
|
+
this.emitOnRefreshToken();
|
|
1545
|
+
}
|
|
1543
1546
|
}
|
|
1544
1547
|
}
|
|
1545
1548
|
get _isAuthenticated() {
|
|
@@ -3396,14 +3399,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImpor
|
|
|
3396
3399
|
}] } });
|
|
3397
3400
|
|
|
3398
3401
|
class ZekValidation {
|
|
3399
|
-
|
|
3402
|
+
alert;
|
|
3400
3403
|
alerts = [];
|
|
3401
3404
|
subscription;
|
|
3402
|
-
constructor(
|
|
3403
|
-
this.
|
|
3405
|
+
constructor(alert) {
|
|
3406
|
+
this.alert = alert;
|
|
3404
3407
|
}
|
|
3405
3408
|
ngOnInit() {
|
|
3406
|
-
this.subscription = this.
|
|
3409
|
+
this.subscription = this.alert.getAlert().subscribe((alert) => {
|
|
3407
3410
|
if (!alert) {
|
|
3408
3411
|
// clear alerts when an empty alert is received
|
|
3409
3412
|
this.alerts = [];
|
|
@@ -3417,7 +3420,7 @@ class ZekValidation {
|
|
|
3417
3420
|
this.subscription?.unsubscribe();
|
|
3418
3421
|
}
|
|
3419
3422
|
clear() {
|
|
3420
|
-
this.
|
|
3423
|
+
this.alert.clear();
|
|
3421
3424
|
}
|
|
3422
3425
|
remove(alert) {
|
|
3423
3426
|
this.alerts = this.alerts.filter(x => x !== alert);
|