Revert "[FIX] Makes sur we always have a selectedGroup"

This reverts commit 9406eee179.
This commit is contained in:
Joffrey JAFFEUX 2017-10-30 01:14:38 -07:00
parent 9406eee179
commit 71cea12ee2
1 changed files with 0 additions and 7 deletions

View File

@ -6,11 +6,6 @@ export default buildCategoryPanel('security', {
selectedGroup: null, selectedGroup: null,
selectedPermission: null, selectedPermission: null,
init() {
this._super();
this.set('selectedGroup', this.get('category.availableGroups.firstObject'));
},
actions: { actions: {
editPermissions() { editPermissions() {
if (!this.get('category.is_special')) { if (!this.get('category.is_special')) {
@ -25,8 +20,6 @@ export default buildCategoryPanel('security', {
permission: PermissionType.create({ id: parseInt(id) }) permission: PermissionType.create({ id: parseInt(id) })
}); });
} }
this.set('selectedGroup', this.get('category.availableGroups.firstObject'));
}, },
removePermission(permission) { removePermission(permission) {