@sumaris-net/ngx-components 1.20.13 → 1.20.14
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 +10 -6
- 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/doc/changelog.md +3 -0
- package/esm2015/src/app/core/menu/menu.component.js +11 -7
- package/fesm2015/sumaris-net.ngx-components.js +10 -6
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -24300,11 +24300,11 @@
|
|
|
24300
24300
|
.pipe(operators.distinctUntilChanged())
|
|
24301
24301
|
.subscribe(function (value) { return value ? _this.open() : _this.close(); });
|
|
24302
24302
|
// Update component when refresh is need (=login events or config changed)
|
|
24303
|
-
this._subscription.add(rxjs.merge(this.accountService.onLogin, this.accountService.onLogout
|
|
24304
|
-
.pipe(operators.tap(function (config) { return _this._config = config; })))
|
|
24303
|
+
this._subscription.add(rxjs.merge(rxjs.merge(this.accountService.onLogin, this.accountService.onLogout)
|
|
24305
24304
|
.pipe(
|
|
24306
24305
|
// Wait account service ready (can be restarted)
|
|
24307
|
-
operators.mergeMap(function () { return _this.accountService.ready(); }), operators.map(function () { return _this.accountService.isLogin(); }), operators.distinctUntilChanged())
|
|
24306
|
+
operators.mergeMap(function () { return _this.accountService.ready(); }), operators.map(function () { return _this.accountService.isLogin(); }), operators.distinctUntilChanged()), this.configService.config
|
|
24307
|
+
.pipe(operators.tap(function (config) { return _this._config = config; }), operators.mergeMap(function () { return _this.accountService.ready(); }), operators.map(function () { return _this.accountService.isLogin(); })))
|
|
24308
24308
|
.subscribe(function (login) {
|
|
24309
24309
|
if (login) {
|
|
24310
24310
|
_this.onLogin(_this.accountService.account);
|
|
@@ -24324,7 +24324,7 @@
|
|
|
24324
24324
|
return __generator(this, function (_a) {
|
|
24325
24325
|
switch (_a.label) {
|
|
24326
24326
|
case 0:
|
|
24327
|
-
console.info('[menu] Update
|
|
24327
|
+
console.info('[menu] Update (login)');
|
|
24328
24328
|
this.accountAvatar = account.avatar;
|
|
24329
24329
|
this.accountName = account.displayName;
|
|
24330
24330
|
this.accountEmail = account.email;
|
|
@@ -24346,8 +24346,12 @@
|
|
|
24346
24346
|
return __generator(this, function (_a) {
|
|
24347
24347
|
switch (_a.label) {
|
|
24348
24348
|
case 0:
|
|
24349
|
-
if (!skipRedirect)
|
|
24350
|
-
console.debug('[menu]
|
|
24349
|
+
if (!skipRedirect) {
|
|
24350
|
+
console.debug('[menu] Logout');
|
|
24351
|
+
}
|
|
24352
|
+
else {
|
|
24353
|
+
console.debug('[menu] Update (logout)');
|
|
24354
|
+
}
|
|
24351
24355
|
this.isLogin = false;
|
|
24352
24356
|
this.accountAvatar = null;
|
|
24353
24357
|
this.accountEmail = null;
|