17 lines
568 B
JavaScript
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);
|
|
}
|
|
});
|