Skip to content

Commit

Permalink
Merge pull request #692 from NBISweden/develop
Browse files Browse the repository at this point in the history
Merge hotfix to production
  • Loading branch information
jhagberg authored Dec 20, 2023
2 parents b737c3f + b45a09c commit f9a8554
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/src/individual_report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function IndividualReport({ individual }: { individual: Individual }) {
className={style.datePicker}
disableFuture
minDate={minDate}
minDateMessage="Datumet måste ligga efter senaste rapporteringsdatum."
minDateMessage="Datumet måste ligga efter senaste rapporteringsdatum. Förmodligen har du redan årsrapporterad denna kanin idag"
variant="inline"
inputVariant="outlined"
label="Datum för årsrapporten"
Expand All @@ -180,7 +180,7 @@ export function IndividualReport({ individual }: { individual: Individual }) {
</MuiPickersUtilsProvider>
<FormControl
component="fieldset"
disabled={!reportDate}
disabled={reportDate <= minDate}
error={error}
className={style.checkContainer}
>
Expand Down Expand Up @@ -228,7 +228,12 @@ export function IndividualReport({ individual }: { individual: Individual }) {
</Button>
</div>
<div className={style.buttonContainer}>
<Button variant="contained" color="primary" onClick={onSave}>
<Button
variant="contained"
color="primary"
onClick={onSave}
disabled={!isStillOwner || reportDate <= minDate}
>
Skicka
</Button>
</div>{" "}
Expand Down

0 comments on commit f9a8554

Please sign in to comment.