@sumaris-net/ngx-components 2.6.21-beta0 → 2.6.21-beta2

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.
@@ -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();
@@ -31924,6 +31924,7 @@ class AccountPage extends AppForm {
31924
31924
  onConfigLoaded(config) {
31925
31925
  this.accountReadOnly = config.getPropertyAsBoolean(CORE_CONFIG_OPTIONS.ACCOUNT_READONLY);
31926
31926
  this.showApiTokens = config.getPropertyAsBoolean(CORE_CONFIG_OPTIONS.AUTH_API_TOKEN_ENABLED);
31927
+ this.cd.detectChanges();
31927
31928
  }
31928
31929
  markForCheck() {
31929
31930
  this.cd.markForCheck();