mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 04:09:15 +02:00
Merge branch '58-htwk-app-linkout-button' into 'development'
Resolve "htwk app linkout button" See merge request htwk-software/htwkalender!80
This commit is contained in:
@@ -142,7 +142,10 @@
|
|||||||
"copyToastErrorDetail": "Link konnte nicht in Zwischenablage kopiert werden",
|
"copyToastErrorDetail": "Link konnte nicht in Zwischenablage kopiert werden",
|
||||||
"copyToClipboard": "Link kopieren",
|
"copyToClipboard": "Link kopieren",
|
||||||
"toGoogleCalendar": "Google Kalender",
|
"toGoogleCalendar": "Google Kalender",
|
||||||
"toMicrosoftCalendar": "Microsoft Kalender"
|
"toMicrosoftCalendar": "Microsoft Kalender",
|
||||||
|
"copyTokenToastSummary": "Information",
|
||||||
|
"copyTokenToastNotification": "Token in die Zwischenablage kopiert, um den Kalender in der HTWK App zu abonnieren",
|
||||||
|
"toHTWKApp": "HTWK App"
|
||||||
},
|
},
|
||||||
"calendarPreview": {
|
"calendarPreview": {
|
||||||
"preview": "Vorschau",
|
"preview": "Vorschau",
|
||||||
|
@@ -142,7 +142,10 @@
|
|||||||
"copyToastErrorDetail": "could not copy link to clipboard",
|
"copyToastErrorDetail": "could not copy link to clipboard",
|
||||||
"copyToClipboard": "copy to clipboard",
|
"copyToClipboard": "copy to clipboard",
|
||||||
"toGoogleCalendar": "to Google Calendar",
|
"toGoogleCalendar": "to Google Calendar",
|
||||||
"toMicrosoftCalendar": "to Microsoft Calendar"
|
"toMicrosoftCalendar": "to Microsoft Calendar",
|
||||||
|
"copyTokenToastSummary": "information",
|
||||||
|
"copyTokenToastNotification": "token copied to clipboard, go to the HTWK app to insert it",
|
||||||
|
"toHTWKApp": "HTWK App"
|
||||||
},
|
},
|
||||||
"calendarPreview": {
|
"calendarPreview": {
|
||||||
"preview": "preview",
|
"preview": "preview",
|
||||||
|
@@ -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(() => [
|
const actions = computed(() => [
|
||||||
{
|
{
|
||||||
label: t("calendarLink.copyToClipboard"),
|
label: t("calendarLink.copyToClipboard"),
|
||||||
@@ -94,6 +105,11 @@ const actions = computed(() => [
|
|||||||
icon: "pi pi-microsoft",
|
icon: "pi pi-microsoft",
|
||||||
command: forwardToMicrosoft,
|
command: forwardToMicrosoft,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: t("calendarLink.toHTWKApp"),
|
||||||
|
icon: "pi pi-mobile",
|
||||||
|
command: copyTokenToClipboard,
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user