enhance: add calendar link to login screen

This commit is contained in:
Julian Krauser 2025-05-31 07:34:19 +02:00
parent ec0222ff2f
commit 516c6a9e92
2 changed files with 7 additions and 2 deletions

View file

@ -58,7 +58,7 @@ export default defineComponent({
},
{
key: "app.show_link_to_calendar",
value: formData.show_link_to_calendar.checked || null,
value: formData.show_link_to_calendar.checked,
},
]);
},

View file

@ -65,6 +65,11 @@
</div>
<p v-if="loginError" class="text-center">{{ loginError }}</p>
</form>
<div class="flex flex-col gap-2 empty:hidden">
<RouterLink v-if="appShow_link_to_calendar" :to="{ name: 'public-calendar' }" button primary-outline>
zum Kalender
</RouterLink>
</div>
<FormBottomBar />
</div>
@ -95,7 +100,7 @@ export default defineComponent({
};
},
computed: {
...mapState(useConfigurationStore, ["clubName"]),
...mapState(useConfigurationStore, ["clubName", "appShow_link_to_calendar"]),
},
mounted() {
this.username = localStorage.getItem("username") ?? "";