mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Review Changes for https://github.com/discourse/discourse/pull/5612/commits/f4f8a293e74e6a37c7bee7645d9ca1d72a7d5bd3.
This commit is contained in:
parent
f4f8a293e7
commit
14f3594f9f
47 changed files with 843 additions and 492 deletions
|
@ -19,6 +19,11 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
|
||||
primaryGroupDirty: propertyNotEqual('originalPrimaryGroupId', 'model.primary_group_id'),
|
||||
|
||||
canDisableSecondFactor: Ember.computed.and(
|
||||
'model.second_factor_enabled',
|
||||
'model.can_disable_second_factor'
|
||||
),
|
||||
|
||||
automaticGroups: function() {
|
||||
return this.get("model.automaticGroups").map((g) => g.name).join(", ");
|
||||
}.property("model.automaticGroups"),
|
||||
|
@ -41,11 +46,6 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
return userPath(`${username}/preferences`);
|
||||
},
|
||||
|
||||
@computed('model.second_factor_enabled','model.can_disable_second_factor')
|
||||
canDisableSecondFactor(secondFactorEnabled, canDisableSecondFactor) {
|
||||
return secondFactorEnabled && canDisableSecondFactor;
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
||||
impersonate() { return this.get("model").impersonate(); },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue