@sumaris-net/ngx-components 2.6.20 → 2.6.21-beta1

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.
@@ -31711,7 +31711,7 @@ class AccountPage extends AppForm {
31711
31711
  // Get user options
31712
31712
  this.optionDefinitions = this.accountService.optionDefs
31713
31713
  .slice()
31714
- .filter((definition) => !definition.minProfile || this.accountService.hasMinProfile(definition.minProfile));
31714
+ .filter((definition) => !definition.disabled && (!definition.minProfile || this.accountService.hasMinProfile(definition.minProfile)));
31715
31715
  // Observed some events
31716
31716
  this.registerSubscription(this.accountService.onLogin.pipe(filter(() => !this.saving)).subscribe((account) => this.onLogin(account)));
31717
31717
  this.registerSubscription(this.accountService.onLogout.subscribe(() => this.onLogout()));
@@ -31782,7 +31782,6 @@ class AccountPage extends AppForm {
31782
31782
  const properties = data?.settings?.asLocalSettings()?.properties || {};
31783
31783
  const propertiesEntities = [];
31784
31784
  this.optionDefinitions
31785
- .filter((definition) => !definition.minProfile || this.accountService.hasMinProfile(definition.minProfile))
31786
31785
  .map((definition) => definition.key)
31787
31786
  .forEach((key) => {
31788
31787
  if (isNotNil(properties[key])) {
@@ -31859,7 +31858,8 @@ class AccountPage extends AppForm {
31859
31858
  res[item.id] = item.value;
31860
31859
  return res;
31861
31860
  }, {});
31862
- newAccount.settings.merge({ properties }, ['properties']);
31861
+ const newProperties = { ...newAccount.settings.content['properties'], ...properties };
31862
+ newAccount.settings.merge({ properties: newProperties }, ['properties']);
31863
31863
  }
31864
31864
  if (this.tokensTable) {
31865
31865
  await this.tokensTable.save();