Skip to content

Commit

Permalink
webui: show confirmation dialog on cancel and rerun button click
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Oct 18, 2021
1 parent c86ebd6 commit 951697b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui/public/js/bootstrap-table-formatter.js
Expand Up @@ -533,9 +533,9 @@ function scheduleActionButtonsFormatter(value, row, index, basePath) {

function jobActionButtonsFormatter(value, row, index, basePath) {
let jobDetailsButton = '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="' + basePath + '/job/details/' + row.jobid + '" title="' + iJS._("View Job Details") + '" id="btn-0"><span class="glyphicon glyphicon-search"></span></a>';
let jobRerunButton = '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="' + basePath + '/job/index?action=rerun&jobid=' + row.jobid + '" title="' + iJS._('Rerun') + '" id="btn-1"><span class="glyphicon glyphicon-repeat"></span></a>';
let jobRerunButton = '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="' + basePath + '/job/index?action=rerun&jobid=' + row.jobid + '" title="' + iJS._('Rerun') + '" id="btn-1" onclick="return confirm(\'Rerun Job ID ' + row.jobid + '?\')"><span class="glyphicon glyphicon-repeat"></span></a>';
let jobRestoreButton = '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="' + basePath + '/restore/?mergefilesets=1&mergejobs=1&client=' + row.client + '&jobid=' + row.jobid + '" title="' + iJS._("Restore") + '" id="btn-1"><span class="glyphicon glyphicon-import"></span></a>';
let jobCancelButton = '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="' + basePath + '/job/cancel/' + row.jobid + '" title="' + iJS._("Cancel") + '" id="btn-1"><span class="glyphicon glyphicon-trash"></span></a>';
let jobCancelButton = '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="' + basePath + '/job/cancel/' + row.jobid + '" title="' + iJS._("Cancel") + '" id="btn-1" onclick="return confirm(\'Cancel Job ID ' + row.jobid + '?\')"><span class="glyphicon glyphicon-trash"></span></a>';

switch(row.jobstatus) {
case 'T':
Expand Down

0 comments on commit 951697b

Please sign in to comment.