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;
|
||||
|
||||
if (notificationName) {
|
||||
if (notificationName === "custom") {
|
||||
title = data.title ? I18n.t(data.title) : "";
|
||||
} else {
|
||||
title = I18n.t(`notifications.titles.${notificationName}`);
|
||||
}
|
||||
} else {
|
||||
title = "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue