FIX: add support for custom/plugin notification title attribute

This commit is contained in:
Maja Komel 2019-06-06 17:35:50 +02:00 committed by Guo Xiang Tan
parent b1c5ea4289
commit 9db1fef4e3
1 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,11 @@ createWidget("notification-item", {
let title; let title;
if (notificationName) { if (notificationName) {
if (notificationName === "custom") {
title = data.title ? I18n.t(data.title) : "";
} else {
title = I18n.t(`notifications.titles.${notificationName}`); title = I18n.t(`notifications.titles.${notificationName}`);
}
} else { } else {
title = ""; title = "";
} }