Skip to content

Commit

Permalink
Add error to frontend models
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Jul 27, 2023
1 parent 2ed29cc commit 7eea767
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion frontend/src/language/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
1 change: 1 addition & 0 deletions frontend/src/models/Inspection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface Inspection {
inspectionUrl?: string
startTime?: Date
endTime?: Date
error?: string
}

enum InspectionStatus {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/models/Mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ export interface Mission {
estimatedDuration?: number
tasks: Task[]
mapMetadata?: MapMetadata
error?: string
}
1 change: 1 addition & 0 deletions frontend/src/models/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface Task {
isCompleted: boolean
startTime?: Date
endTime?: Date
error?: string
inspections: Inspection[]
}

Expand Down

0 comments on commit 7eea767

Please sign in to comment.