Minor fixes, version change

pull/380/head
Piero Toffanin 2018-01-25 13:44:46 -05:00
rodzic 85ed5433d0
commit 06e686241e
4 zmienionych plików z 15 dodań i 8 usunięć

Wyświetl plik

@ -9,8 +9,6 @@ import {
} from 'react-router-dom';
import $ from 'jquery';
console.log(React.version);
class Dashboard extends React.Component {
constructor(){
super();

Wyświetl plik

@ -314,13 +314,17 @@ class TaskListItem extends React.Component {
}
}
let data = {
options: task.options
};
// Force reprocess
if (value === null) data.uuid = '';
return $.ajax({
url: `/api/projects/${task.project}/tasks/${task.id}/`,
contentType: 'application/json',
data: JSON.stringify({
options: task.options
}),
data: JSON.stringify(data),
dataType: 'json',
type: 'PATCH'
}).done((taskJson) => {
@ -396,8 +400,13 @@ class TaskListItem extends React.Component {
if ([statusCodes.FAILED, statusCodes.COMPLETED, statusCodes.CANCELED].indexOf(task.status) !== -1 &&
task.processing_node){
// By default restart reruns every pipeline
// step from the beginning
const rerunFrom = task.can_rerun_from.length > 1 ?
task.can_rerun_from[1] :
null;
addActionButton("Restart", "btn-primary", "glyphicon glyphicon-repeat", this.genRestartAction(), {
addActionButton("Restart", "btn-primary", "glyphicon glyphicon-repeat", this.genRestartAction(rerunFrom), {
subItems: this.getRestartSubmenuItems()
});
}

Wyświetl plik

@ -5,5 +5,5 @@ global.requestAnimationFrame = function(callback) {
import $ from 'jquery';
// Bootstrap polyfills
// Bootstrap mocks
$.prototype.modal = () => {};

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "WebODM",
"version": "0.4.1",
"version": "0.4.2",
"description": "Open Source Drone Image Processing",
"main": "index.js",
"scripts": {