Robin Ward 58ee947b35 FIX: Mobile group add dropdown was broken
It looks like we removed the bulk add modal but didn't update the mobile
template.
2020-08-14 21:03:41 -04:00

31 lines
676 B
JavaScript

import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import { action, computed } from "@ember/object";
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]();
}
});