12 lines
395 B
JavaScript
12 lines
395 B
JavaScript
import NotificationsButton from 'discourse/components/notifications-button';
|
|
|
|
export default NotificationsButton.extend({
|
|
classNames: ['notification-options', 'group-notification-menu'],
|
|
notificationLevel: Em.computed.alias('group.group_user.notification_level'),
|
|
i18nPrefix: 'groups.notifications',
|
|
|
|
clicked(id) {
|
|
this.get('group').setNotification(id, this.get('user.id'));
|
|
}
|
|
});
|