mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 00:43:38 +08:00
Rename "title" variable to more apt "description"
This commit is contained in:
parent
02deaa4bc6
commit
d83147d137
|
@ -90,20 +90,20 @@ export const DefaultNotificationItem =
|
||||||
return this.attrs.fancy_title;
|
return this.attrs.fancy_title;
|
||||||
}
|
}
|
||||||
|
|
||||||
let title;
|
let description;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.attrs.notification_type ===
|
this.attrs.notification_type ===
|
||||||
this.site.notification_types.liked_consolidated
|
this.site.notification_types.liked_consolidated
|
||||||
) {
|
) {
|
||||||
title = I18n.t("notifications.liked_consolidated_description", {
|
description = I18n.t("notifications.liked_consolidated_description", {
|
||||||
count: parseInt(data.count)
|
count: parseInt(data.count)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
title = data.topic_title;
|
description = data.topic_title;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ember.isEmpty(title) ? "" : escapeExpression(title);
|
return Ember.isEmpty(description) ? "" : escapeExpression(description);
|
||||||
},
|
},
|
||||||
|
|
||||||
text(notificationType, notificationName) {
|
text(notificationType, notificationName) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user