UX: We can link an invited user without a topic to /my/invited
This commit is contained in:
parent
31f7addefa
commit
106aed9dd3
|
@ -1,5 +1,7 @@
|
||||||
import ObjectController from 'discourse/controllers/object';
|
import ObjectController from 'discourse/controllers/object';
|
||||||
|
|
||||||
|
var INVITED_TYPE= 8;
|
||||||
|
|
||||||
export default ObjectController.extend({
|
export default ObjectController.extend({
|
||||||
|
|
||||||
scope: function () {
|
scope: function () {
|
||||||
|
@ -25,6 +27,10 @@ export default ObjectController.extend({
|
||||||
if (topicId) {
|
if (topicId) {
|
||||||
return Discourse.Utilities.postUrl(this.safe("slug"), topicId, this.safe("post_number"));
|
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"),
|
}.property("data.{badge_id, badge_name}", "slug", "topic_id", "post_number"),
|
||||||
|
|
||||||
description: function () {
|
description: function () {
|
||||||
|
|
Loading…
Reference in New Issue