Fix new trail (#673)

* Update FUNDING.yml

* fix new trail page reload
This commit is contained in:
slothful-vassal
2026-01-13 11:57:27 +01:00
committed by GitHub
parent 839679074f
commit 57b37d84c4

View File

@@ -219,26 +219,28 @@
: 'moon'}"
onclick={() => toggleTheme()}
></button>
<div class="flex">
<a
class="btn-primary btn-large !rounded-r-none focus:ring-0"
href="/trail/edit/new"
><i class="fa fa-plus mr-2"></i>{$_("new-trail")}</a
>
<Dropdown
items={importDropdownItems}
onchange={(item) => handleImportDropdownClick(item)}
>
{#snippet children({ toggleMenu: openDropdown })}
<button
onclick={openDropdown}
class="bg-primary rounded-r-lg text-white min-h-12 hover:bg-primary-hover px-3"
aria-label="Open trail create dropdown"
><i class="fa fa-caret-down"></i></button
>
{/snippet}
</Dropdown>
</div>
<nav data-sveltekit-reload>
<div class="flex">
<a
class="btn-primary btn-large !rounded-r-none focus:ring-0"
href="/trail/edit/new"
><i class="fa fa-plus mr-2"></i>{$_("new-trail")}</a
>
<Dropdown
items={importDropdownItems}
onchange={(item) => handleImportDropdownClick(item)}
>
{#snippet children({ toggleMenu: openDropdown })}
<button
onclick={openDropdown}
class="bg-primary rounded-r-lg text-white min-h-12 hover:bg-primary-hover px-3"
aria-label="Open trail create dropdown"
><i class="fa fa-caret-down"></i></button
>
{/snippet}
</Dropdown>
</div>
</nav>
{#if page.data.notifications}
<NotificationDropdown></NotificationDropdown>
{/if}