FIX: group members dropdown was broken on mobile (#8994)

This commit is contained in:
Joffrey JAFFEUX 2020-02-18 23:23:38 +01:00 committed by GitHub
parent 7a054fc142
commit 67ee79f023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -7,7 +7,10 @@
<div class="group-members-manage">
{{#if canManageGroup}}
{{#if currentUser.admin}}
{{group-members-dropdown onChange=(action "groupMembersDropdown")}}
{{group-members-dropdown
showAddMembersModal=(route-action "showAddMembersModal")
showBulkAddModal=(route-action "showBulkAddModal")
}}
{{else}}
{{d-button
icon="plus"

View File

@ -1,5 +1,5 @@
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import { computed } from "@ember/object";
import { action, computed } from "@ember/object";
export default DropdownSelectBoxComponent.extend({
classNames: ["group-members-dropdown"],
@ -27,5 +27,10 @@ export default DropdownSelectBoxComponent.extend({
}
return items;
})
}),
@action
onChange(id) {
this.attrs && this.attrs[id] && this.attrs[id]();
}
});