Skip to content

Commit da1b715

Browse files
committed
5419: Updated to matched current frontend release
1 parent 458f12f commit da1b715

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
@@ -1157,8 +1176,10 @@
11571176
</Folder>
11581177
</div>
11591178

1160-
<!-- PATCH ADD LOGO TO SIDEBAR: pb-[50px]-class added -->
1161-
<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]">
1179+
<!-- PATCH ADD LOGO TO SIDEBAR: pb-[50px]-class added -->
1180+
<div
1181+
class="px-1.5 pt-1.5 pb-2 sticky bottom-0 z-10 bg-gray-50 dark:bg-gray-950 sidebar pb-[50px]"
1182+
>
11621183
<!-- /PATCH ADD LOGO TO SIDEBAR -->
11631184
<div class="flex flex-col font-primary">
11641185
{#if $user !== undefined && $user !== null}
@@ -1189,10 +1210,16 @@
11891210
</div>
11901211
</div>
11911212
<!-- PATCH ADD LOGO TO SIDEBAR -->
1192-
<div class="relative">
1193-
<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">
1213+
<div class="relative">
1214+
<div
1215+
class="-mb-2 flex items-center py-2.5 px-4.5 w-full bg-gray-800 absolute left-0 bottom-0 z-20"
1216+
>
11941217
<div class="self-center mr-3">
1195-
<img src={$config?.extended_features?.logo_url ? JSON.parse($config?.extended_features?.logo_url) : ""} class="max-w-[150px] object-cover" alt="" />
1218+
<img
1219+
src={$config?.extended_features?.logo_url}
1220+
class="max-w-[150px] object-cover"
1221+
alt=""
1222+
/>
11961223
</div>
11971224
</div>
11981225
</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)