fixes serverside pb auth

This commit is contained in:
Christian Beutel
2024-02-27 00:19:17 +01:00
parent 275874fba9
commit 9b7a4adadf
13 changed files with 39 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
import { Trail } from "$lib/models/trail";
import { categories_index } from "$lib/stores/category_store";
import { trail, trails_show } from "$lib/stores/trail_store";
import { trails_show } from "$lib/stores/trail_store";
import { error, type Load } from "@sveltejs/kit";
export const load: Load = async ({ params }) => {

View File

@@ -274,7 +274,7 @@
<button
class="leaflet-control fa fa-{mapFullScreen
? 'minimize'
: 'maximize'} rounded-full text-lg bg-white px-[14px] py-2 hover:bg-gray-100"
: 'maximize'} rounded-full text-lg bg-white text-black px-[14px] py-2 hover:bg-gray-100"
style="cursor: pointer !important"
on:click={() => toggleMapFullScreen()}
></button>

View File

@@ -2,9 +2,5 @@ import { trails_show } from "$lib/stores/trail_store";
import type { Load } from "@sveltejs/kit";
export const load: Load = async ({ params }) => {
try {
await trails_show(params.id!, true)
}catch(e) {
}
await trails_show(params.id!, true)
};