Spaces:
Running
Running
fix (#640)
Browse files
src/routes/settings/[...model]/+page.svelte
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
<script lang="ts">
|
2 |
import { page } from "$app/stores";
|
|
|
|
|
3 |
import type { BackendModel } from "$lib/server/models";
|
4 |
import { useSettingsStore } from "$lib/stores/settings";
|
5 |
import CopyToClipBoardBtn from "$lib/components/CopyToClipBoardBtn.svelte";
|
@@ -73,7 +75,7 @@
|
|
73 |
</a>
|
74 |
{/if}
|
75 |
<CopyToClipBoardBtn
|
76 |
-
value="{$page.url.origin}
|
77 |
classNames="!border-none !shadow-none !py-0 !px-1 !rounded-md"
|
78 |
>
|
79 |
<div class="flex items-center gap-1.5">
|
|
|
1 |
<script lang="ts">
|
2 |
import { page } from "$app/stores";
|
3 |
+
import { base } from "$app/paths";
|
4 |
+
import { PUBLIC_ORIGIN } from "$env/static/public";
|
5 |
import type { BackendModel } from "$lib/server/models";
|
6 |
import { useSettingsStore } from "$lib/stores/settings";
|
7 |
import CopyToClipBoardBtn from "$lib/components/CopyToClipBoardBtn.svelte";
|
|
|
75 |
</a>
|
76 |
{/if}
|
77 |
<CopyToClipBoardBtn
|
78 |
+
value="{PUBLIC_ORIGIN || $page.url.origin}{base}?model={model.id}"
|
79 |
classNames="!border-none !shadow-none !py-0 !px-1 !rounded-md"
|
80 |
>
|
81 |
<div class="flex items-center gap-1.5">
|