Skip to content

Commit

Permalink
Add failed to rerun translation
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Jan 3, 2024
1 parent fd10999 commit ca1c421
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export const MissionRestartButton = ({ missionId, hasFailedTasks }: MissionProps
BackendAPICaller.reRunMission(missionId, option === ReRunOptions.ReRunFailed)
.then(() => navigateToHome())
.catch(() =>
setAlert(AlertType.RequestFail, <FailedRequestAlertContent message={'Failed to rerun missions'} />)
setAlert(
AlertType.RequestFail,
<FailedRequestAlertContent message={TranslateText('Failed to rerun mission')} />
)
)

return (
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,6 @@
"Failed to retrieve Echo missions": "Failed to retrieve Echo missions",
"Request error": "Request error",
"No missions available": "No missions available",
"Failed to delete mission from queue": "Failed to delete mission from queue"
"Failed to delete mission from queue": "Failed to delete mission from queue",
"Failed to rerun mission": "Failed to rerun mission"
}
3 changes: 2 additions & 1 deletion frontend/src/language/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,6 @@
"Failed to retrieve Echo missions": "Kunne ikke hente ut oppdrag fra Echo",
"Request error": "Forespørselsfeil",
"No missions available": "Ingen oppdrag tilgjengelig",
"Failed to delete mission from queue": "Kunne ikke fjerne oppdrag fra køen"
"Failed to delete mission from queue": "Kunne ikke fjerne oppdrag fra køen",
"Failed to rerun mission": "Kunne ikke kjøre oppdraget på nytt"
}

0 comments on commit ca1c421

Please sign in to comment.