Add "search for" buttons to notifications

This commit is contained in:
Steve-Mcl
2022-05-01 16:48:04 +01:00
parent 4fb8292618
commit 8a972ee543
9 changed files with 81 additions and 15 deletions

View File

@@ -358,6 +358,14 @@ var RED = (function() {
} else {
options.buttons = [
{
text: RED._("notification.label.unknownNodesButton"),
class: "pull-left",
click: function() {
RED.actions.invoke("core:search", "type:unknown");
}
},
{
class: "primary",
text: RED._("common.label.close"),
click: function() {
persistentNotifications[notificationId].hideNotification();