From 99ab03dee517af522f787184f875c43e695f5244 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Tue, 1 Oct 2024 14:10:09 +0200 Subject: [PATCH] use notification --- core/src/main/resources/hudson/views/BuildButtonColumn/icon.js | 2 +- .../resources/lib/hudson/project/configurable/configurable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/hudson/views/BuildButtonColumn/icon.js b/core/src/main/resources/hudson/views/BuildButtonColumn/icon.js index 4cd6c767255e..8ad6c1f80a05 100644 --- a/core/src/main/resources/hudson/views/BuildButtonColumn/icon.js +++ b/core/src/main/resources/hudson/views/BuildButtonColumn/icon.js @@ -15,7 +15,7 @@ Behaviour.specify( headers: crumb.wrap({}), }).then((rsp) => { if (rsp.ok) { - hoverNotification(message, this, -100); + notificationBar.show(message,notificationBar.SUCCESS); } else { notificationBar.show(failure, notificationBar.ERROR) } diff --git a/core/src/main/resources/lib/hudson/project/configurable/configurable.js b/core/src/main/resources/lib/hudson/project/configurable/configurable.js index 86d0afad05f8..da46936f0101 100644 --- a/core/src/main/resources/lib/hudson/project/configurable/configurable.js +++ b/core/src/main/resources/lib/hudson/project/configurable/configurable.js @@ -11,7 +11,7 @@ headers: crumb.wrap({}), }).then((rsp) => { if (rsp.ok) { - hoverNotification(success, ev.target.parentNode); + notificationBar.show(success,notificationBar.SUCCESS); } else { notificationBar.show(failure, notificationBar.ERROR) }