Skip to content

Commit 44641b6

Browse files
committed
Allow user to select no times in edit auto schedule
1 parent 2234bc1 commit 44641b6

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

frontend/src/components/Dialogs/MissionEditDialog.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,7 @@ export const MissionSchedulingEditDialog = ({ mission, isOpen, onClose }: Missio
149149
<Button onClick={onClose} variant="outlined" color="primary">
150150
{TranslateText('Cancel')}
151151
</Button>
152-
<Button
153-
onClick={onSubmit}
154-
disabled={schedulingTimes.length === 0}
155-
variant="contained"
156-
color="primary"
157-
>
152+
<Button onClick={onSubmit} variant="contained" color="primary">
158153
{TranslateText('Update')}
159154
</Button>
160155
</ButtonSection>
@@ -377,7 +372,7 @@ const SelectedTimeDaySummary = ({
377372
<StyledSummary>
378373
<Typography variant="h6">{TranslateText('Selected times')}</Typography>
379374
{schedulingTimes.length === 0 && (
380-
<Typography color="warning">{TranslateText('No times have been selected. Please add time')}</Typography>
375+
<Typography color="warning">{TranslateText('No times have been selected')}</Typography>
381376
)}
382377
{allDays.map((day) => (
383378
<div key={`Summary ${day}`}>

frontend/src/language/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"and": "and",
289289
"No automated scheduling set": "No automated scheduling set",
290290
"Add additional times": "Add additional times",
291-
"No times have been selected. Please add time": "No times have been selected. Please add time",
291+
"No times have been selected": "No times have been selected",
292292
"Mission source id": "Mission source id",
293293
"Skip": "Skip",
294294
"No missions": "No missions",

frontend/src/language/no.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"and": "og",
289289
"No automated scheduling set": "Automatisk kjøring er ikke satt",
290290
"Add additional times": "Legg til flere tidspunkt",
291-
"No times have been selected. Please add time": "Ingen tidspunkt er valgt. Vennligst legg til tidspunkt",
291+
"No times have been selected": "Ingen tidspunkt er valgt",
292292
"Mission source id": "Mission source id",
293293
"Skip": "Neste",
294294
"No missions": "Ingen oppdrag",

0 commit comments

Comments
 (0)