Skip to content

Commit

Permalink
allow selecting of spitzenstunde even when a single messquerschnitt i…
Browse files Browse the repository at this point in the history
…s choose
  • Loading branch information
boal committed Feb 26, 2025
1 parent 33e37e3 commit e3c5a28
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
justify="center"
dense
>
{{ helperText }}
{{ helpText }}
</v-row>
</v-col>
</v-row>
Expand Down Expand Up @@ -122,15 +122,12 @@ const durchschnitt = computed(() => {
});
function isTypeDisabled(type: string): boolean {
return (
type !== props.messstelleDetektierteFahrzeugart ||
chosenOptionsCopy.value.messquerschnittIds.length !== 1
);
return type !== props.messstelleDetektierteFahrzeugart;
}
const helperText = computed(() => {
if (chosenOptionsCopy.value.messquerschnittIds.length !== 1) {
return "Spitzenstunde kann nur für einen einzelnen Messquerschnitt ausgegeben werden";
const helpText = computed(() => {
if (isZeitraumGreaterThanFiveYears.value) {
return "Die Spitzenstunde kann nur für Zeiträume kleiner 5 Jahre angezeigt werden";
}
return "";
});
Expand Down Expand Up @@ -189,6 +186,7 @@ watch(
chosenOptionsCopy.value.zeitauswahl = Zeitauswahl.TAGESWERT;
snackbarStore.showInfo("Zeitauswahl wurde auf Tageswert gesetzt");
}
}
},
{ immediate: true, deep: true }
);
</script>

0 comments on commit e3c5a28

Please sign in to comment.