Skip to content

Commit d8b7d6e

Browse files
committed
5419: Updated to matched current frontend release
1 parent 564a6ff commit d8b7d6e

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

src/lib/components/layout/Sidebar.svelte

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,25 @@
444444
};
445445
446446
const isWindows = /Windows/i.test(navigator.userAgent);
447+
448+
// PATCH ADD LOGO TO SIDEBAR
449+
function IsJson(str) {
450+
try {
451+
JSON.parse(str);
452+
} catch (e) {
453+
return false;
454+
}
455+
return true;
456+
}
457+
458+
function getUrl(str) {
459+
if (IsJson(str)) {
460+
return JSON.parse(str);
461+
} else {
462+
return str;
463+
}
464+
}
465+
// /PATCH ADD LOGO TO SIDEBAR
447466
</script>
448467

449468
<ArchivedChatsModal
@@ -1131,8 +1150,10 @@
11311150
</Folder>
11321151
</div>
11331152

1134-
<!-- PATCH ADD LOGO TO SIDEBAR: pb-[50px]-class added -->
1135-
<div class="px-1.5 pt-1.5 pb-2 sticky bottom-0 z-10 bg-gray-50 dark:bg-gray-950 sidebar pb-[50px]">
1153+
<!-- PATCH ADD LOGO TO SIDEBAR: pb-[50px]-class added -->
1154+
<div
1155+
class="px-1.5 pt-1.5 pb-2 sticky bottom-0 z-10 bg-gray-50 dark:bg-gray-950 sidebar pb-[50px]"
1156+
>
11361157
<!-- /PATCH ADD LOGO TO SIDEBAR -->
11371158
<div class="flex flex-col font-primary">
11381159
{#if $user !== undefined && $user !== null}
@@ -1163,10 +1184,16 @@
11631184
</div>
11641185
</div>
11651186
<!-- PATCH ADD LOGO TO SIDEBAR -->
1166-
<div class="relative">
1167-
<div class="-mb-2 flex items-center py-2.5 px-4.5 w-full bg-gray-800 absolute left-0 bottom-0 z-20">
1187+
<div class="relative">
1188+
<div
1189+
class="-mb-2 flex items-center py-2.5 px-4.5 w-full bg-gray-800 absolute left-0 bottom-0 z-20"
1190+
>
11681191
<div class="self-center mr-3">
1169-
<img src={$config?.extended_features?.logo_url ? JSON.parse($config?.extended_features?.logo_url) : ""} class="max-w-[150px] object-cover" alt="" />
1192+
<img
1193+
src={$config?.extended_features?.logo_url}
1194+
class="max-w-[150px] object-cover"
1195+
alt=""
1196+
/>
11701197
</div>
11711198
</div>
11721199
</div>

src/routes/auth/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
id: '1',
415415
dismissible: false,
416416
title: 'Vigtigt før du logger ind første gang!',
417-
content: `<div>Du skal have adgang til AI-Platform i Aarhus Kommunes Systemregister.</div><div><a target="_blank" rel="noopener noreferrer" class='underline' href='${JSON.parse($config?.extended_features?.system_register_url)}'>Anmod om adgang i systemregistret</a></div>.</div><div>Du kan <a target="_blank" rel="noopener noreferrer" class='underline' href='${JSON.parse($config?.extended_features?.system_register_guide_url)}'>hente en vejledning til hvordan man anmoder om adgang til systemregistret</a></div>`
417+
content: `<div>Du skal have adgang til AI-Platform i Aarhus Kommunes Systemregister.</div><div><a target="_blank" rel="noopener noreferrer" class='underline' href='${$config?.extended_features?.system_register_url}'>Anmod om adgang i systemregistret</a></div>.</div><div>Du kan <a target="_blank" rel="noopener noreferrer" class='underline' href='${$config?.extended_features?.system_register_guide_url}'>hente en vejledning til hvordan man anmoder om adgang til systemregistret</a></div>`
418418
}}
419419
></Banner>
420420
{/if}

0 commit comments

Comments
 (0)