enhance: add calendar link to login screen
This commit is contained in:
parent
ec0222ff2f
commit
516c6a9e92
2 changed files with 7 additions and 2 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
|
|
|
@ -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") ?? "";
|
||||||
|
|
Loading…
Add table
Reference in a new issue