Commit b64c8af3 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Merge branch 'Plasma/5.14'

parents 6234aaa3 a8b71fe5
......@@ -88,6 +88,12 @@ Column {
else if (showHistory) {
notificationsHistoryModel.inserting = true;
//Disable actions in this copy as they will stop working once the original notification is closed.
//Only the jobUrl (which is a URL to open) can continue working as we'll handle this internally.
var actions = notification.actions.filter(function (item) {
return item.id.indexOf("jobUrl#") === 0;
});
//create a copy of the notification.
//Disable actions in this copy as they will stop working once the original notification is closed.
......@@ -101,7 +107,7 @@ Column {
"created" : new Date(),
"urls" : notification.urls,
"maximumTextHeight" : notification.maximumTextHeight,
"actions" : null,
"actions" : actions,
"hasDefaultAction" : false,
"hasConfigureAction" : false,
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment