small changes and force run for release

This commit is contained in:
bel
2020-03-16 04:50:09 +00:00
parent a8e50d3ce4
commit c35c07f8c3
6 changed files with 86 additions and 4 deletions

View File

@@ -57,8 +57,7 @@ function format(job) {
var buttons = ""
var btns = [
{"name":"refresh", "icon":"8635"},
{"name":"disable", "icon":"11035"},
{"name":"enable", "icon":"9654"},
{"name":"run", "icon":"9654"},
{"name":"modify", "icon":"9999"},
{"name":"delete", "icon":"10006"}
]
@@ -118,6 +117,16 @@ function jobenable(input) {
getField("disabled").checked = false
}
function jobrun(input) {
var job = jobFromInput(input)
function cb(body, status) {
if (status != 200) {
console.log("failed to run job: ", status, body)
}
}
http("GET", "/api/job/run/"+job.id, cb, null)
}
function jobmodify(input) {
var form = getForm()
var job = jobFromInput(input)