kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fix OAM plugin bug, improve buttons CSS
rodzic
d9e46e252f
commit
b10fc806d5
|
@ -89,6 +89,7 @@
|
|||
.action-buttons{
|
||||
button{
|
||||
margin-right: 4px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.btn-group{
|
||||
|
|
|
@ -59,6 +59,7 @@ class Info(TaskView):
|
|||
|
||||
# Populate fields from first image in task
|
||||
img = ImageUpload.objects.filter(task=task).exclude(image__iendswith='.txt').first()
|
||||
if img is not None:
|
||||
img_path = os.path.join(settings.MEDIA_ROOT, img.path())
|
||||
im = Image.open(img_path)
|
||||
|
||||
|
@ -91,6 +92,8 @@ class Info(TaskView):
|
|||
|
||||
task_info['startDate'] = task_info['endDate'] - 60 * 60 * 1000
|
||||
set_task_info(task.id, task_info)
|
||||
else:
|
||||
task_info['noImages'] = True
|
||||
|
||||
return Response(task_info, status=status.HTTP_200_OK)
|
||||
|
||||
|
|
|
@ -109,6 +109,7 @@ export default class ShareButton extends React.Component{
|
|||
|
||||
render(){
|
||||
const { loading, taskInfo, error } = this.state;
|
||||
if (taskInfo.noImages) return (<div/>);
|
||||
|
||||
const getButtonIcon = () => {
|
||||
if (loading || taskInfo.sharing) return "fa fa-circle-notch fa-spin fa-fw";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "WebODM",
|
||||
"version": "1.9.11",
|
||||
"version": "1.9.12",
|
||||
"description": "User-friendly, extendable application and API for processing aerial imagery.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Ładowanie…
Reference in New Issue