Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis committed Aug 3, 2020
1 parent b488226 commit fd5ff8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/page/template/content/preferences-account.htm
Expand Up @@ -124,7 +124,7 @@
<hr class="preferences-separator">
<header class="preferences-header" data-bind="text: t('preferencesAccountData')"></header>

<!-- ko if: isSendAnalytics() -->
<!-- ko if: canSendAnalytics() -->
<div class="preferences-option">
<div class="preferences-option-icon checkbox accent-text" data-bind="attr: {'data-uie-value': optionPrivacy}" data-uie-name="status-preference-privacy">
<input type="checkbox" id="privacy-checkbox" data-bind="checked: optionPrivacy">
Expand Down
4 changes: 2 additions & 2 deletions src/script/view_model/content/PreferencesAccountViewModel.ts
Expand Up @@ -96,7 +96,7 @@ export class PreferencesAccountViewModel {
createTeamUrl: string;
isTemporaryAndNonPersistent: boolean;
isConsentCheckEnabled: () => boolean;
isSendAnalytics: () => boolean;
canSendAnalytics: () => boolean;
canEditProfile: (user: User) => boolean;
Config: typeof PreferencesAccountViewModel.CONFIG;
UserNameState: typeof PreferencesAccountViewModel.USERNAME_STATE;
Expand Down Expand Up @@ -180,7 +180,7 @@ export class PreferencesAccountViewModel {

this.isTemporaryAndNonPersistent = isTemporaryClientAndNonPersistent(loadValue(StorageKey.AUTH.PERSIST));
this.isConsentCheckEnabled = () => Config.getConfig().FEATURE.CHECK_CONSENT;
this.isSendAnalytics = () => this.userRepository.isTeam();
this.canSendAnalytics = () => this.userRepository.isTeam();
this.canEditProfile = user => user.managedBy() === User.CONFIG.MANAGED_BY.WIRE;

this.updateProperties(this.propertiesRepository.properties);
Expand Down

0 comments on commit fd5ff8c

Please sign in to comment.