fix: remove prefetches

This commit is contained in:
Andras Bacsai 2023-01-10 11:31:44 +01:00
parent d09b4885fe
commit 55a35c6bec
6 changed files with 3 additions and 18 deletions

View File

@ -183,7 +183,6 @@
<div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}>
<a
id="dashboard"
sveltekit:prefetch
href="/"
class="icons hover:text-pink-500"
class:text-pink-500={$page.url.pathname === '/'}
@ -210,7 +209,6 @@
{#if $appSession.teamId === '0'}
<a
id="servers"
sveltekit:prefetch
href="/servers"
class="icons hover:text-sky-500"
class:text-sky-500={$page.url.pathname === '/servers'}
@ -243,7 +241,6 @@
<div class="flex flex-col space-y-2 py-2">
<a
id="iam"
sveltekit:prefetch
href={$appSession.pendingInvitations.length > 0 ? '/iam/pending' : '/iam'}
class="icons hover:text-iam indicator"
class:text-iam={$page.url.pathname.startsWith('/iam')}
@ -272,7 +269,6 @@
</a>
<a
id="settings"
sveltekit:prefetch
href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/docker'}
class="icons hover:text-settings"
class:text-settings={$page.url.pathname.startsWith('/settings')}
@ -297,7 +293,6 @@
</a>
<a
id="documentation"
sveltekit:prefetch
href="https://docs.coollabs.io/coolify/"
target="_blank"
rel="noopener noreferrer"
@ -393,7 +388,6 @@
<li>
<a
class="no-underline icons hover:text-white hover:bg-pink-500"
sveltekit:prefetch
href="/"
class:bg-pink-500={$page.url.pathname === '/'}
on:click={closeDrawer}
@ -422,7 +416,6 @@
<a
id="servers"
class="no-underline icons hover:text-white hover:bg-sky-500"
sveltekit:prefetch
href="/servers"
class:bg-sky-500={$page.url.pathname.startsWith('/servers')}
on:click={closeDrawer}

View File

@ -72,7 +72,6 @@
<div class="flex justify-center">
<a
href={`/destinations/new?from=/applications/${id}/configuration/destination`}
sveltekit:prefetch
class="add-icon bg-sky-600 hover:bg-sky-500"
>
<svg

View File

@ -176,7 +176,6 @@
id="exited"
href={!$status.database.isRunning ? `/databases/${id}/logs` : null}
class="icons bg-transparent text-red-500 tooltip-error"
sveltekit:prefetch
>
<svg
xmlns="http://www.w3.org/2000/svg"
@ -271,7 +270,6 @@
<a
id="configuration"
href="/databases/{id}"
sveltekit:prefetch
class="hover:text-yellow-500 rounded"
class:text-yellow-500={$page.url.pathname === `/databases/${id}`}
class:bg-coolgray-500={$page.url.pathname === `/databases/${id}`}
@ -305,7 +303,6 @@
<a
id="databaselogs"
href={$status.database.isRunning ? `/databases/${id}/logs` : null}
sveltekit:prefetch
class="hover:text-pink-500 rounded"
class:text-pink-500={$page.url.pathname === `/databases/${id}/logs`}
class:bg-coolgray-500={$page.url.pathname === `/databases/${id}/logs`}

View File

@ -60,7 +60,7 @@
{$t('application.configuration.no_configurable_destination')}
</div>
<div class="flex justify-center">
<a href="/destinations/new" sveltekit:prefetch class="add-icon bg-sky-600 hover:bg-sky-500">
<a href="/destinations/new" class="add-icon bg-sky-600 hover:bg-sky-500">
<svg
class="w-6"
xmlns="http://www.w3.org/2000/svg"

View File

@ -57,11 +57,7 @@
<div class="flex-col">
<div class="pb-2 text-center font-bold">No SSH key found</div>
<div class="flex justify-center">
<a
href="/settings/ssh"
sveltekit:prefetch
class="add-icon bg-sky-600 hover:bg-sky-500"
>
<a href="/settings/ssh" class="add-icon bg-sky-600 hover:bg-sky-500">
<svg
class="w-6"
xmlns="http://www.w3.org/2000/svg"

View File

@ -59,7 +59,7 @@
{$t('application.configuration.no_configurable_destination')}
</div>
<div class="flex justify-center">
<a href="/new/destination" sveltekit:prefetch class="add-icon bg-sky-600 hover:bg-sky-500">
<a href="/new/destination" class="add-icon bg-sky-600 hover:bg-sky-500">
<svg
class="w-6"
xmlns="http://www.w3.org/2000/svg"