FIX: group members dropdown was broken on mobile (#8994)
This commit is contained in:
parent
7a054fc142
commit
67ee79f023
|
@ -7,7 +7,10 @@
|
||||||
<div class="group-members-manage">
|
<div class="group-members-manage">
|
||||||
{{#if canManageGroup}}
|
{{#if canManageGroup}}
|
||||||
{{#if currentUser.admin}}
|
{{#if currentUser.admin}}
|
||||||
{{group-members-dropdown onChange=(action "groupMembersDropdown")}}
|
{{group-members-dropdown
|
||||||
|
showAddMembersModal=(route-action "showAddMembersModal")
|
||||||
|
showBulkAddModal=(route-action "showBulkAddModal")
|
||||||
|
}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{d-button
|
{{d-button
|
||||||
icon="plus"
|
icon="plus"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||||
import { computed } from "@ember/object";
|
import { action, computed } from "@ember/object";
|
||||||
|
|
||||||
export default DropdownSelectBoxComponent.extend({
|
export default DropdownSelectBoxComponent.extend({
|
||||||
classNames: ["group-members-dropdown"],
|
classNames: ["group-members-dropdown"],
|
||||||
|
@ -27,5 +27,10 @@ export default DropdownSelectBoxComponent.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
})
|
}),
|
||||||
|
|
||||||
|
@action
|
||||||
|
onChange(id) {
|
||||||
|
this.attrs && this.attrs[id] && this.attrs[id]();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue