Skip to content

Commit

Permalink
FIX NOW PLEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Apr 29, 2024
1 parent 01587d4 commit 21a1318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/Anmeldung/AnmeldungFormGeneral.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const props = withDefaults(
/**
* Gibt an, ob der Meldeschluss ignoriert werden soll.
*/
ignoreClosingDate: boolean
ignoreClosingDate?: boolean
}>(),
{
isPublic: true,
Expand Down Expand Up @@ -55,7 +55,7 @@ const { state: unterveranstaltung, isLoading } = useAsyncState(async () => {
const isClosed = computed(() => dayjs().isAfter(unterveranstaltung.value?.meldeschluss))
if (!props.ignoreClosingDate) {
if (!props.ignoreClosingDate && props.isPublic) {
watch(isClosed, (value) => {
if (value) {
router.back()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ const unterveranstaltungId = ref(-1)
v-if="unterveranstaltungId >= 0"
:is-public="false"
:unterveranstaltung-id="unterveranstaltungId"
ignore-closing-date
/>
</template>

0 comments on commit 21a1318

Please sign in to comment.