From 106aed9dd3a15a434d96c133c762a6acac7e5893 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 13 Aug 2014 11:19:29 -0400 Subject: [PATCH] UX: We can link an invited user without a topic to /my/invited --- .../javascripts/discourse/controllers/notification.js.es6 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/discourse/controllers/notification.js.es6 b/app/assets/javascripts/discourse/controllers/notification.js.es6 index e62e174f227..2fa73d44726 100644 --- a/app/assets/javascripts/discourse/controllers/notification.js.es6 +++ b/app/assets/javascripts/discourse/controllers/notification.js.es6 @@ -1,5 +1,7 @@ import ObjectController from 'discourse/controllers/object'; +var INVITED_TYPE= 8; + export default ObjectController.extend({ scope: function () { @@ -25,6 +27,10 @@ export default ObjectController.extend({ if (topicId) { return Discourse.Utilities.postUrl(this.safe("slug"), topicId, this.safe("post_number")); } + + if (this.get('notification_type') === INVITED_TYPE) { + return '/my/invited'; + } }.property("data.{badge_id, badge_name}", "slug", "topic_id", "post_number"), description: function () {