This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/category-notifications-button.js.es6
2014-06-23 12:37:38 -04:00

17 lines
568 B
JavaScript

import NotificationsButton from 'discourse/views/notifications-button';
export default NotificationsButton.extend({
classNames: ['notification-options', 'category-notification-menu'],
buttonIncludesText: false,
longDescriptionBinding: null,
hidden: Em.computed.alias('category.deleted'),
notificationLevels: Discourse.Category.NotificationLevel,
notificationLevel: Em.computed.alias('category.notification_level'),
i18nPrefix: 'category.notifications',
i18nPostfix: '',
clicked: function(id) {
this.get('category').setNotification(id);
}
});