From 7eea767f9b39c9be8f5ba051bb78d6c8f21f2bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Chirico=20Indreb=C3=B8?= Date: Wed, 19 Jul 2023 12:25:04 +0200 Subject: [PATCH] Add error to frontend models --- frontend/src/language/en.json | 3 ++- frontend/src/language/no.json | 3 ++- frontend/src/models/Inspection.ts | 1 + frontend/src/models/Mission.ts | 1 + frontend/src/models/Task.ts | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/language/en.json b/frontend/src/language/en.json index 731b30ae1..50670c3a2 100644 --- a/frontend/src/language/en.json +++ b/frontend/src/language/en.json @@ -107,5 +107,6 @@ "selected": "selected", "This button is disabled because the robot is not available. Check that the robot is on, and are not doing any other activities.": "This button is disabled because the robot is not available. Check that the robot is on, and are not doing any other activities.", "Close": "Close", - "Localizing": "Localizing" + "Localizing": "Localizing", + "N": "N" } diff --git a/frontend/src/language/no.json b/frontend/src/language/no.json index 77accb8a4..dfc4c86bc 100644 --- a/frontend/src/language/no.json +++ b/frontend/src/language/no.json @@ -107,5 +107,6 @@ "selected": "valgte", "This button is disabled because the robot is not available. Check that the robot is on, and are not doing any other activities.": "Denne knappen er deaktivert fordi roboten ikke er tilgjengelig. Sjekk at roboten er på og ikke gjør noen andre aktiviteter.", "Close": "Steng", - "Localizing": "Lokaliserer" + "Localizing": "Lokaliserer", + "N": "N" } diff --git a/frontend/src/models/Inspection.ts b/frontend/src/models/Inspection.ts index b48951ef9..3c32a1cd9 100644 --- a/frontend/src/models/Inspection.ts +++ b/frontend/src/models/Inspection.ts @@ -9,6 +9,7 @@ export interface Inspection { inspectionUrl?: string startTime?: Date endTime?: Date + error?: string } enum InspectionStatus { diff --git a/frontend/src/models/Mission.ts b/frontend/src/models/Mission.ts index 83e10fd3c..2723b259c 100644 --- a/frontend/src/models/Mission.ts +++ b/frontend/src/models/Mission.ts @@ -31,4 +31,5 @@ export interface Mission { estimatedDuration?: number tasks: Task[] mapMetadata?: MapMetadata + error?: string } diff --git a/frontend/src/models/Task.ts b/frontend/src/models/Task.ts index 659918d10..c5cd7e552 100644 --- a/frontend/src/models/Task.ts +++ b/frontend/src/models/Task.ts @@ -16,6 +16,7 @@ export interface Task { isCompleted: boolean startTime?: Date endTime?: Date + error?: string inspections: Inspection[] }