mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 05:19:24 +08:00
Revert "[FIX] Makes sur we always have a selectedGroup"
This reverts commit 9406eee179b6627691c287272f2677c734150324.
This commit is contained in:
parent
9406eee179
commit
71cea12ee2
@ -6,11 +6,6 @@ export default buildCategoryPanel('security', {
|
||||
selectedGroup: null,
|
||||
selectedPermission: null,
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
this.set('selectedGroup', this.get('category.availableGroups.firstObject'));
|
||||
},
|
||||
|
||||
actions: {
|
||||
editPermissions() {
|
||||
if (!this.get('category.is_special')) {
|
||||
@ -25,8 +20,6 @@ export default buildCategoryPanel('security', {
|
||||
permission: PermissionType.create({ id: parseInt(id) })
|
||||
});
|
||||
}
|
||||
|
||||
this.set('selectedGroup', this.get('category.availableGroups.firstObject'));
|
||||
},
|
||||
|
||||
removePermission(permission) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user