feat:#58 added htwk app button

This commit is contained in:
Elmar Kresse
2024-10-15 11:34:36 +02:00
parent 538b6ca566
commit 3a03c6f519
3 changed files with 24 additions and 2 deletions

View File

@@ -78,6 +78,17 @@ const forwardToMicrosoft = () => {
);
};
const copyTokenToClipboard = () => {
navigator.clipboard.writeText(tokenStore().token).then(() => {
toast.add({
severity: "info",
summary: t("calendarLink.copyTokenToastSummary"),
detail: t("calendarLink.copyTokenToastNotification"),
life: 3000,
});
});
};
const actions = computed(() => [
{
label: t("calendarLink.copyToClipboard"),
@@ -94,6 +105,11 @@ const actions = computed(() => [
icon: "pi pi-microsoft",
command: forwardToMicrosoft,
},
{
label: t("calendarLink.toHTWKApp"),
icon: "pi pi-mobile",
command: copyTokenToClipboard,
},
]);
</script>