Skip to content

Commit efbfffe

Browse files
committed
Adding group job moving feature
1 parent fff76c6 commit efbfffe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

mrq/dashboard/static/js/views/jobs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ define(["jquery", "underscore", "views/generic/datatablepage", "models"],functio
105105
var action = $(evt.target).data("action");
106106
var data = _.clone(this.filters);
107107

108+
if (action == "move") {
109+
data["destination_queue"] = prompt("Enter destination queue");
110+
}
111+
108112
data["action"] = action;
109113
self.jobaction(evt, data);
110114

mrq/dashboard/templates/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ <h4 class="modal-title"></h4>
394394

395395
<div class="pull-right js-jobs-groupactions">
396396
<br/>
397+
<button type="submit" class="btn btn-warning input-sm js-jobs-groupaction" data-action="move" style="padding:5px"><span class='glyphicon glyphicon-refresh'></span> Move these jobs to...</button>
398+
&nbsp;
397399
<button type="submit" class="btn btn-warning input-sm js-jobs-groupaction" data-action="requeue" style="padding:5px"><span class='glyphicon glyphicon-refresh'></span> Requeue these jobs</button>
398400
&nbsp;
399401
<button type="submit" class="btn btn-danger input-sm js-jobs-groupaction" data-action="cancel" style="padding:5px"><span class='glyphicon glyphicon-remove-circle'></span> Cancel these jobs</button>

0 commit comments

Comments
 (0)