Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add header to mission queue #1962

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { AlertCategory } from 'components/Alerts/AlertsBanner'
import { Robot } from 'models/Robot'
import { tokens } from '@equinor/eds-tokens'
import { useEffect } from 'react'
import { Typography } from '@equinor/eds-core-react'

const StyledMissionView = styled.div`
display: flex;
padding: 16px;
flex-direction: column;
align-items: flex-end;
gap: 8px;
align-self: stretch;
border-top: 1px solid ${tokens.colors.ui.background__medium.hex};
Expand Down Expand Up @@ -74,6 +74,7 @@ export const RobotMissionQueueView = ({ robot }: { robot: Robot }): JSX.Element
<>
{(robotMissionQueue.length > 0 || robotLoadingMissions.length > 0) && (
<StyledMissionView>
<Typography variant="h5">{TranslateText('Queued Missions')}</Typography>
{missionQueueDisplay}
{robotLoadingMissions.length > 0 && loadingQueueDisplay}
</StyledMissionView>
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 @@ -285,5 +285,6 @@
"Pressure is too high to start a mission. Queued missions will start when the pressure is under {0}mBar.": "Pressure is too high to start a mission. Queued missions will start when the pressure is under {0}mBar.",
"Pressure is too high to start a mission.": "Pressure is too high to start a mission.",
"Pressure is too low to start a mission. Queued missions will start when the pressure is over {0}mBar.": "Pressure is too low to start a mission. Queued missions will start when the pressure is over {0}mBar.",
"Pressure is too low to start a mission.": "Pressure is too low to start a mission."
"Pressure is too low to start a mission.": "Pressure is too low to start a mission.",
"Queued Missions": "Queued Missions"
}
3 changes: 2 additions & 1 deletion frontend/src/language/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,6 @@
"Pressure is too high to start a mission. Queued missions will start when the pressure is under {0}mBar.": "Trykket er for høyt til å starte oppdrag. Oppdrag i kø vil starte når trykket er under {0}mBar.",
"Pressure is too high to start a mission.": "Trykket er for høyt til å starte oppdrag.",
"Pressure is too low to start a mission. Queued missions will start when the pressure is over {0}mBar.": "Trykket er for lavt til å starte oppdrag. Oppdrag i kø vil starte når trykket er over {0}mBar.",
"Pressure is too low to start a mission.": "Trykket er for lavt til å starte oppdrag."
"Pressure is too low to start a mission.": "Trykket er for lavt til å starte oppdrag.",
"Queued Missions": "Oppdragskø"
}
Loading