mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-03 18:29:16 +02:00
update paths and ical link url
This commit is contained in:
@@ -5,6 +5,8 @@ import { onMounted } from "vue";
|
||||
import router from "../router";
|
||||
const toast = useToast();
|
||||
|
||||
const domain = window.location.hostname;
|
||||
|
||||
const show = () => {
|
||||
toast.add({
|
||||
severity: "info",
|
||||
@@ -25,7 +27,7 @@ function rerouteIfTokenIsEmpty() {
|
||||
}
|
||||
|
||||
function copyToClipboard() {
|
||||
const text = "http://localhost:8090/api/feed?token=" + tokenStore().token;
|
||||
const text = "https://" + domain + "/api/feed?token=" + tokenStore().token;
|
||||
// Copy the text inside the text field
|
||||
navigator.clipboard.writeText(text);
|
||||
show();
|
||||
@@ -37,7 +39,7 @@ function copyToClipboard() {
|
||||
<div class="flex flex-column">
|
||||
<div class="flex align-items-center justify-content-center h-4rem m-2">
|
||||
<h2>
|
||||
{{ "http://localhost:8090/api/feed?token=" + tokenStore().token }}
|
||||
{{ "https://" + domain + "/api/feed?token=" + tokenStore().token }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-center h-4rem m-2">
|
||||
|
Reference in New Issue
Block a user