Skip to content

Commit f381bcd

Browse files
committed
Show job name in dialogs instead of id
1 parent 689ea97 commit f381bcd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/html/webapp/components/core/job/detail/detail.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default Control.extend({
7676
'#delete-btn click': function(el, ev) {
7777
var that = this;
7878

79-
bootbox.confirm("Are you sure you want to delete <b>" + that.job.attr('id') + "</b>?", function(result) {
79+
bootbox.confirm("Are you sure you want to delete <b>" + that.job.attr('name') + "</b>?", function(result) {
8080
if (result) {
8181

8282
var okButton = $("button[data-bb-handler='confirm']");
@@ -106,7 +106,7 @@ export default Control.extend({
106106
'#cancel-btn click': function(el, ev) {
107107
var that = this;
108108

109-
bootbox.confirm("Are you sure you want to cancel <b>" + that.job.attr('id') + "</b>?", function(result) {
109+
bootbox.confirm("Are you sure you want to cancel <b>" + that.job.attr('name') + "</b>?", function(result) {
110110
if (result) {
111111

112112
var okButton = $("button[data-bb-handler='confirm']");
@@ -136,7 +136,7 @@ export default Control.extend({
136136
'#restart-btn click': function(el, ev) {
137137
var that = this;
138138

139-
bootbox.confirm("Are you sure you want to restart <b>" + that.job.attr('id') + "</b>?", function(result) {
139+
bootbox.confirm("Are you sure you want to restart <b>" + that.job.attr('name') + "</b>?", function(result) {
140140
if (result) {
141141

142142
var okButton = $("button[data-bb-handler='confirm']");

src/main/html/webapp/components/core/job/list/list.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default Control.extend({
4848
var card = $(el).closest('.card');
4949
var job = domData.get.call(card[0], 'job');
5050

51-
bootbox.confirm("Are you sure you want to delete <b>" + job.attr('id') + "</b>?", function(result) {
51+
bootbox.confirm("Are you sure you want to delete <b>" + job.attr('name') + "</b>?", function(result) {
5252
if (result) {
5353

5454
var okButton = $("button[data-bb-handler='confirm']");
@@ -78,7 +78,7 @@ export default Control.extend({
7878
var card = $(el).closest('.card');
7979
var job = domData.get.call(card[0], 'job');
8080

81-
bootbox.confirm("Are you sure you want to cancel <b>" + job.attr('id') + "</b>?", function(result) {
81+
bootbox.confirm("Are you sure you want to cancel <b>" + job.attr('name') + "</b>?", function(result) {
8282
if (result) {
8383

8484
var okButton = $("button[data-bb-handler='confirm']");

0 commit comments

Comments
 (0)