Commit 8068ae6a authored by matjaz's avatar matjaz
Browse files

Corrected behavior of "Run" context menu command in case of being executed on...

Corrected behavior of "Run" context menu command in case of being executed on already successfully executed widget.
Now behavior is identical as in the command "Run only this" -> the widget is first reset and then rerun.
parent 451882ab
......@@ -428,7 +428,20 @@ function waitPredecessorAndRunWidget(widgetId) {
function runTree(widgetId) {
$.post(url['get-executed-status'], { 'workflow_id':activeCanvasId }, function(data) {
executed = data.executedStatus;
runTreeRec(widgetId);
if(executed[widgetId])
//first reset widget and then run tree
$.post(url['reset-widget'], { 'widget_id':widgetId }, function(data) {
unfinishOne(widgetId)
for (c in connections) {
if (connections[c].outputWidget==widgetId) {
resetWidget(connections[c].inputWidget);
}
}
runTreeRec(widgetId);
},'json');
else
//dont need to reset widget, just run tree
runTreeRec(widgetId);
},'json');
}
......
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