mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:48:33 +08:00
13 lines
409 B
JavaScript
13 lines
409 B
JavaScript
import NotificationOptionsComponent from "select-kit/components/notifications-button";
|
|
|
|
export default NotificationOptionsComponent.extend({
|
|
pluginApiIdentifiers: ["grouo-notifications-button"],
|
|
classNames: ["group-notifications-button"],
|
|
i18nPrefix: "groups.notifications",
|
|
allowInitialValueMutation: false,
|
|
|
|
mutateValue(value) {
|
|
this.group.setNotification(value, this.get("user.id"));
|
|
}
|
|
});
|