Skip to content

Commit

Permalink
[JENKINS-75265] fix notification for l:task
Browse files Browse the repository at this point in the history
Change #9787 introduced a bug that lead so that the notificationBar was not
properly showing with javascript error

(cherry picked from commit 0ed487d)
  • Loading branch information
mawinter69 authored and krisstern committed Feb 16, 2025
1 parent 209985c commit d184b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/resources/lib/layout/task/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Behaviour.specify("a.task-link-no-confirm", "task-link", 0, function (el) {
headers: crumb.wrap({}),
}).then((rsp) => {
if (rsp.ok) {
notificationBar(success, notificationBar.SUCCESS);
notificationBar.show(success, notificationBar.SUCCESS);
} else {
notificationBar(failure, notificationBar.ERROR);
notificationBar.show(failure, notificationBar.ERROR);
}
});
ev.preventDefault();
Expand Down

0 comments on commit d184b05

Please sign in to comment.