mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 03:42:45 +08:00
21 lines
539 B
JavaScript
21 lines
539 B
JavaScript
import ViewingActionType from "discourse/mixins/viewing-action-type";
|
|
|
|
export default Discourse.Route.extend(ViewingActionType, {
|
|
actions: {
|
|
didTransition() {
|
|
this.controllerFor("user-notifications")._showFooter();
|
|
return true;
|
|
}
|
|
},
|
|
|
|
model() {
|
|
return this.store.find("notification", { username: this.modelFor("user").get("username") });
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.set("model", model);
|
|
controller.set("user", this.modelFor("user"));
|
|
this.viewingActionType(-1);
|
|
}
|
|
});
|