mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
FIX: loaded
is a CP and can't be overwritten
This commit is contained in:
parent
9889b7277f
commit
6fac4a36b4
@ -1,5 +1,5 @@
|
|||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import { alias, and } from "@ember/object/computed";
|
import { alias } from "@ember/object/computed";
|
||||||
import Controller from "@ember/controller";
|
import Controller from "@ember/controller";
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
import discourseComputed from "discourse-common/utils/decorators";
|
||||||
import CanCheckEmails from "discourse/mixins/can-check-emails";
|
import CanCheckEmails from "discourse/mixins/can-check-emails";
|
||||||
@ -21,7 +21,7 @@ export default Controller.extend(CanCheckEmails, {
|
|||||||
secondFactorMethod: SECOND_FACTOR_METHODS.TOTP,
|
secondFactorMethod: SECOND_FACTOR_METHODS.TOTP,
|
||||||
totps: null,
|
totps: null,
|
||||||
|
|
||||||
loaded: and("secondFactorImage", "secondFactorKey"),
|
loaded: false,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
Loading…
Reference in New Issue
Block a user