kopia lustrzana https://github.com/OpenDroneMap/WebODM
Minor fixes, version change
rodzic
85ed5433d0
commit
06e686241e
|
@ -9,8 +9,6 @@ import {
|
|||
} from 'react-router-dom';
|
||||
import $ from 'jquery';
|
||||
|
||||
console.log(React.version);
|
||||
|
||||
class Dashboard extends React.Component {
|
||||
constructor(){
|
||||
super();
|
||||
|
|
|
@ -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()
|
||||
});
|
||||
}
|
||||
|
|
|
@ -5,5 +5,5 @@ global.requestAnimationFrame = function(callback) {
|
|||
|
||||
import $ from 'jquery';
|
||||
|
||||
// Bootstrap polyfills
|
||||
// Bootstrap mocks
|
||||
$.prototype.modal = () => {};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "WebODM",
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.2",
|
||||
"description": "Open Source Drone Image Processing",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Ładowanie…
Reference in New Issue