mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
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">
|
||||
{{#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"
|
||||
|
|
|
@ -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]();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user