From f381bcdb57db67696d3931ea21e1b8f1ea7309de Mon Sep 17 00:00:00 2001 From: Lukas Forer Date: Mon, 18 Mar 2024 13:35:40 +0100 Subject: [PATCH] Show job name in dialogs instead of id --- src/main/html/webapp/components/core/job/detail/detail.js | 6 +++--- src/main/html/webapp/components/core/job/list/list.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/html/webapp/components/core/job/detail/detail.js b/src/main/html/webapp/components/core/job/detail/detail.js index 5ef45138..147973c7 100644 --- a/src/main/html/webapp/components/core/job/detail/detail.js +++ b/src/main/html/webapp/components/core/job/detail/detail.js @@ -76,7 +76,7 @@ export default Control.extend({ '#delete-btn click': function(el, ev) { var that = this; - bootbox.confirm("Are you sure you want to delete " + that.job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to delete " + that.job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); @@ -106,7 +106,7 @@ export default Control.extend({ '#cancel-btn click': function(el, ev) { var that = this; - bootbox.confirm("Are you sure you want to cancel " + that.job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to cancel " + that.job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); @@ -136,7 +136,7 @@ export default Control.extend({ '#restart-btn click': function(el, ev) { var that = this; - bootbox.confirm("Are you sure you want to restart " + that.job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to restart " + that.job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); diff --git a/src/main/html/webapp/components/core/job/list/list.js b/src/main/html/webapp/components/core/job/list/list.js index d78b4f0d..63f886bf 100644 --- a/src/main/html/webapp/components/core/job/list/list.js +++ b/src/main/html/webapp/components/core/job/list/list.js @@ -48,7 +48,7 @@ export default Control.extend({ var card = $(el).closest('.card'); var job = domData.get.call(card[0], 'job'); - bootbox.confirm("Are you sure you want to delete " + job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to delete " + job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); @@ -78,7 +78,7 @@ export default Control.extend({ var card = $(el).closest('.card'); var job = domData.get.call(card[0], 'job'); - bootbox.confirm("Are you sure you want to cancel " + job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to cancel " + job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']");