Commit 598c735a authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

add text editor for application name in dashboard

parent 7ac1acea
......@@ -53,15 +53,9 @@ ApplicationWindow {
model: servers
currentIndex: 0
Layout.fillWidth: true
/* onAccepted: { */
/* console.log("accepted " + currentText +" " + Status.guess_type(currentText) + " "+ combotypes.find(Status.guess_type(currentText))) */
/* combotypes.currentIndex = combotypes.find(Status.guess_type(currentText)) */
/* /\* controller.deploy( Status.url(false),combotypes.currentText, tunnel.checked, serverPath.text); *\/ */
/* /\* Status.show() *\/ */
/* } */
onCurrentIndexChanged: {
if (combotypes) {
console.log("index changed " + currentText +" " + combotypes.find(Status.guess_type(currentText)))
/* console.log("index changed " + currentText +" " + combotypes.find(Status.guess_type(currentText))) */
combotypes.currentIndex = combotypes.find(Status.guess_type(currentText))
}
}
......@@ -87,11 +81,21 @@ ApplicationWindow {
TextEdit {
id: serverPath
Layout.fillWidth: true
/* width: 72 */
/* autoScroll: true */
text: "/home/nniclaus/git/dtk-github/build/bin/dtkDistributedServer"
}
}
RowLayout {
id: apppathrow
Label {
id: apppathLabel
text: "application path:"
}
TextEdit {
id: slavePath
Layout.fillWidth: true
text: "dtkDistributedSlave"
}
}
RowLayout {
id: actionrow
......
......@@ -59,7 +59,7 @@ function submit(nodes, cores, walltime)
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
var resources = { "resources": {"nodes": nodes, "cores": cores },
"walltime": walltime,
"application": "dtkDistributedSlave --server " + url(false) + " --policy " + policy()
"application": slavePath.text +" --server " + url(false) + " --policy " + policy()
}
xhr.send(JSON.stringify(resources))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment