2017-10-19 15:51:08 -04:00
|
|
|
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",
|
|
|
|
|
2017-11-09 13:57:53 -05:00
|
|
|
selectValueFunction(value) {
|
|
|
|
this.get("category").setNotification(value);
|
2017-10-19 15:51:08 -04:00
|
|
|
}
|
|
|
|
});
|