diff --git a/src/geo-backend/data/views/import_item.py b/src/geo-backend/data/views/import_item.py index 53ea143..1ea3b9a 100644 --- a/src/geo-backend/data/views/import_item.py +++ b/src/geo-backend/data/views/import_item.py @@ -72,7 +72,7 @@ def fetch_import_queue(request, id): if queue.user_id != request.user.id: return JsonResponse({'success': False, 'msg': 'not authorized to view this item', 'code': 403}, status=400) if not lock_manager.is_locked('data_importqueue', queue.id) and (len(queue.geofeatures) or len(queue.log)): - return JsonResponse({'success': True, 'geofeatures': queue.geofeatures, 'log': queue.log}, status=200) + return JsonResponse({'success': True, 'geofeatures': queue.geofeatures, 'log': queue.log, 'msg': None}, status=200) return JsonResponse({'success': True, 'geofeatures': [], 'log': [], 'msg': 'uploaded data still processing'}, status=200) except ImportQueue.DoesNotExist: return JsonResponse({'success': False, 'msg': 'ID does not exist', 'code': 404}, status=400) @@ -88,7 +88,7 @@ def fetch_queued(request): item['processing'] = not (len(item['geofeatures']) and len(item['log'])) and lock_manager.is_locked('data_importqueue', item['id']) item['feature_count'] = count del item['geofeatures'] - return JsonResponse({'data': data}) + return JsonResponse({'data': data, 'msg': None}) @login_required_401 diff --git a/src/geo-frontend/src/components/import/Process.vue b/src/geo-frontend/src/components/import/Process.vue index 6655142..a937d95 100644 --- a/src/geo-frontend/src/components/import/Process.vue +++ b/src/geo-frontend/src/components/import/Process.vue @@ -7,14 +7,15 @@
{{ item }}
- {{ parseGeoJson(item) }} + {{ item }}