mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 08:03:47 +08:00
17 lines
422 B
JavaScript
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();
|
|
}
|
|
});
|