Remove notificationType argument from text
This commit is contained in:
parent
a3254b8446
commit
ac6f7b3625
|
@ -8,7 +8,7 @@ createWidgetFrom(DefaultNotificationItem, "custom-notification-item", {
|
|||
return data.title ? I18n.t(data.title) : "";
|
||||
},
|
||||
|
||||
text(notificationType, notificationName) {
|
||||
text(notificationName) {
|
||||
const { attrs } = this;
|
||||
const data = attrs.data;
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ export const DefaultNotificationItem =
|
|||
return Ember.isEmpty(description) ? "" : escapeExpression(description);
|
||||
},
|
||||
|
||||
text(notificationType, notificationName) {
|
||||
text(notificationName) {
|
||||
const { attrs } = this;
|
||||
const data = attrs.data;
|
||||
|
||||
|
@ -108,7 +108,7 @@ export const DefaultNotificationItem =
|
|||
const notificationName = lookup[notificationType];
|
||||
|
||||
let { data } = attrs;
|
||||
let text = emojiUnescape(this.text(notificationType, notificationName));
|
||||
let text = emojiUnescape(this.text(notificationName));
|
||||
let icon = this.icon(notificationName, data);
|
||||
|
||||
const title = this.title(notificationName, data);
|
||||
|
|
|
@ -2,7 +2,7 @@ import { createWidgetFrom } from "discourse/widgets/widget";
|
|||
import { DefaultNotificationItem } from "discourse/widgets/default-notification-item";
|
||||
|
||||
createWidgetFrom(DefaultNotificationItem, "group-message-summary-notification-item", {
|
||||
text(notificationType, notificationName) {
|
||||
text(notificationName) {
|
||||
const { attrs } = this;
|
||||
const data = attrs.data;
|
||||
const count = data.inbox_count;
|
||||
|
|
|
@ -3,7 +3,7 @@ import { DefaultNotificationItem } from "discourse/widgets/default-notification-
|
|||
import { formatUsername } from "discourse/lib/utilities";
|
||||
|
||||
createWidgetFrom(DefaultNotificationItem, "liked-notification-item", {
|
||||
text(notificationType, notificationName) {
|
||||
text(notificationName) {
|
||||
const { attrs } = this;
|
||||
const data = attrs.data;
|
||||
|
||||
|
|
Loading…
Reference in New Issue