discourse/app/assets/javascripts/discourse/components/user-notifications-large.js.es6

17 lines
422 B
JavaScript

import MountWidget from 'discourse/components/mount-widget';
import { observes } from "ember-addons/ember-computed-decorators";
export default MountWidget.extend({
widget: 'user-notifications-large',
init() {
this._super();
this.args = { notifications: this.get('notifications') };
},
@observes('notifications.length', 'notifications.@each.read')
_triggerRefresh() {
this.queueRerender();
}
});