feat:#4 added link-out button for local import

This commit is contained in:
Elmar Kresse
2024-05-20 14:58:29 +02:00
parent 5641484b93
commit 306ca12391
4 changed files with 27 additions and 3 deletions

View File

@@ -76,6 +76,14 @@ const forwardToMicrosoft = () => {
);
};
const forwardToHTWKalendar = () => {
// route to path /calendar/view?token=token
router.push({
name: "calendar-view",
query: { token: tokenStore().token },
});
};
const actions = computed(() => [
{
label: t("calendarLink.copyToClipboard"),
@@ -92,6 +100,11 @@ const actions = computed(() => [
icon: "pi pi-microsoft",
command: forwardToMicrosoft,
},
{
label: t("calendarLink.toHTWKalendar"),
icon: "pi pi-home",
command: forwardToHTWKalendar,
}
]);
</script>