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", 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> </div>
<p v-if="loginError" class="text-center">{{ loginError }}</p> <p v-if="loginError" class="text-center">{{ loginError }}</p>
</form> </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 /> <FormBottomBar />
</div> </div>
@ -95,7 +100,7 @@ export default defineComponent({
}; };
}, },
computed: { computed: {
...mapState(useConfigurationStore, ["clubName"]), ...mapState(useConfigurationStore, ["clubName", "appShow_link_to_calendar"]),
}, },
mounted() { mounted() {
this.username = localStorage.getItem("username") ?? ""; this.username = localStorage.getItem("username") ?? "";