mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
18 lines
602 B
Text
18 lines
602 B
Text
|
import NotificationOptionsComponent from "select-box-kit/components/notifications-button";
|
||
|
|
||
|
export default NotificationOptionsComponent.extend({
|
||
|
classNames: "category-notifications-button",
|
||
|
isHidden: Ember.computed.or("category.deleted", "site.isMobileDevice"),
|
||
|
i18nPrefix: "category.notifications",
|
||
|
value: Ember.computed.alias("category.notification_level"),
|
||
|
headerComponent: "category-notifications-button/category-notifications-button-header",
|
||
|
|
||
|
actions: {
|
||
|
onSelect(value) {
|
||
|
value = this.defaultOnSelect(value);
|
||
|
|
||
|
this.get("category").setNotification(value);
|
||
|
}
|
||
|
}
|
||
|
});
|