@sumaris-net/ngx-components 2.5.11-rc1 → 2.5.11-rc2
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/esm2020/src/app/core/account/account.page.mjs +3 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +2 -1
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +2 -1
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -26859,7 +26859,8 @@ class AccountPage extends AppForm {
|
|
|
26859
26859
|
ngOnInit() {
|
|
26860
26860
|
super.ngOnInit();
|
|
26861
26861
|
// Get user options
|
|
26862
|
-
this.optionDefinitions = this.accountService.optionDefs.slice()
|
|
26862
|
+
this.optionDefinitions = this.accountService.optionDefs.slice()
|
|
26863
|
+
.filter(definition => !definition.minProfile || this.accountService.hasMinProfile(definition.minProfile));
|
|
26863
26864
|
// Observed some events
|
|
26864
26865
|
this.registerSubscription(this.accountService.onLogin.pipe(filter(() => !this.saving)).subscribe(account => this.onLogin(account)));
|
|
26865
26866
|
this.registerSubscription(this.accountService.onLogout.subscribe(() => this.onLogout()));
|