UX: We can link an invited user without a topic to /my/invited

This commit is contained in:
Robin Ward 2014-08-13 11:19:29 -04:00
parent 31f7addefa
commit 106aed9dd3
1 changed files with 6 additions and 0 deletions

View File

@ -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 () {