-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1481 from appknox/PD-1559-fix-deprecation-analyti…
…cs-billing-ac-settings fix deprecations in analytics, billing & account-settings
- Loading branch information
Showing
8 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,19 +72,19 @@ export default class AccountSettingsSecurityMultiFactorAuthComponent extends Com | |
|
||
@computed('[email protected]') | ||
get isMFAEnabled() { | ||
return !!this.mfas.records?.findBy('enabled', true); | ||
return !!this.mfas.records?.find((it) => it.enabled === true); | ||
} | ||
|
||
@computed('[email protected]') | ||
get isEmailMFAEnabled() { | ||
const emailMFA = this.mfas.records?.findBy('isEmail', true); | ||
const emailMFA = this.mfas.records?.find((it) => it.isEmail === true); | ||
|
||
return emailMFA?.enabled ?? false; | ||
} | ||
|
||
@computed('[email protected]') | ||
get isAppMFAEnabled() { | ||
const appMFA = this.mfas.records?.findBy('isApp', true); | ||
const appMFA = this.mfas.records?.find((it) => it.isApp === true); | ||
|
||
return appMFA?.enabled ?? false; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters