mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:23:39 +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"));
|
|
}
|
|
});
|