Fix OAM plugin bug, improve buttons CSS

pull/1147/head
Piero Toffanin 2022-02-28 13:56:22 -05:00
rodzic d9e46e252f
commit b10fc806d5
4 zmienionych plików z 34 dodań i 29 usunięć

Wyświetl plik

@ -89,6 +89,7 @@
.action-buttons{
button{
margin-right: 4px;
margin-top: 4px;
}
.btn-group{

Wyświetl plik

@ -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)

Wyświetl plik

@ -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";

Wyświetl plik

@ -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": {