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/components/user-notifications-large.js
2020-03-12 13:29:55 -04:00

17 lines
422 B
JavaScript

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