DEV: Remove group-members-dropdown (#11948)
It was introduced inc82b2dcc24, but sinceb76731d722and58ee947b35it's a single-option dropdown, so there's no need to show it (and keep it) instead of a button. We use a button for non-admins already.
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import { action, computed } from "@ember/object";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default DropdownSelectBoxComponent.extend({
|
||||
classNames: ["group-members-dropdown"],
|
||||
|
||||
selectKitOptions: {
|
||||
icon: "bars",
|
||||
showFullTitle: false,
|
||||
},
|
||||
|
||||
content: computed(function () {
|
||||
const items = [
|
||||
{
|
||||
id: "showAddMembersModal",
|
||||
name: I18n.t("groups.add_members.title", {
|
||||
group_name: this.groupName,
|
||||
}),
|
||||
icon: "user-plus",
|
||||
},
|
||||
];
|
||||
return items;
|
||||
}),
|
||||
|
||||
@action
|
||||
onChange(id) {
|
||||
this.attrs && this.attrs[id] && this.attrs[id]();
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user