Add load notification from history

This commit is contained in:
ClemDee
2019-06-28 16:06:44 +02:00
parent 833d70825e
commit c96be7bf89
4 changed files with 74 additions and 17 deletions

View File

@@ -83,8 +83,8 @@ define([
if (handlers[type]) {
handlers[type](common, data);
// add getters to access simply some informations
data.content.isClickable = typeof data.content.handler === "function";
data.content.isDismissible = typeof data.content.dismissHandler === "function";
data.content.isClickable = typeof data.content.handler === "function" && data.content.archived !== true;
data.content.isDismissible = typeof data.content.dismissHandler === "function" && data.content.archived !== true;
} else {
// $(el).find('.cp-notification-dismiss').css('display', 'flex'); // XXX
}