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/routes/user-notifications-index.js.es6
Sam 01281b6364 FIX: hide bookmarks tab on other peoples profile (unless self or admin)
FIX: missing download my posts button
FIX: moderators had no way of seeing responses and edits etc
2015-12-31 15:05:23 +11:00

13 lines
262 B
JavaScript

export default Discourse.Route.extend({
controllerName: 'user-notifications',
renderTemplate() {
this.render("user/notifications-index");
},
afterModel(model){
if (!model) {
this.transitionTo('userNotifications.responses');
}
},
});