FIX: add support for custom/plugin notification title attribute
This commit is contained in:
parent
b1c5ea4289
commit
9db1fef4e3
|
@ -159,7 +159,11 @@ createWidget("notification-item", {
|
||||||
let title;
|
let title;
|
||||||
|
|
||||||
if (notificationName) {
|
if (notificationName) {
|
||||||
title = I18n.t(`notifications.titles.${notificationName}`);
|
if (notificationName === "custom") {
|
||||||
|
title = data.title ? I18n.t(data.title) : "";
|
||||||
|
} else {
|
||||||
|
title = I18n.t(`notifications.titles.${notificationName}`);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
title = "";
|
title = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue