Begin work on public board component
This commit is contained in:
@@ -9,10 +9,12 @@
|
||||
return new URLSearchParams(window.location.search).get('station');
|
||||
}
|
||||
|
||||
let station = ""
|
||||
let station;
|
||||
let staff;
|
||||
|
||||
onMount(async () => {
|
||||
station = await getHeadcode() || "";
|
||||
staff = false;
|
||||
})
|
||||
|
||||
</script>
|
||||
@@ -20,6 +22,8 @@
|
||||
<Header {title} />
|
||||
|
||||
<!-- If 'uuid' exists in store then load StaffLdb else load PublicLdb -->
|
||||
{#if !staff}
|
||||
<PublicLdb {station} />
|
||||
{/if}
|
||||
|
||||
<Nav />
|
||||
|
||||
Reference in New Issue
Block a user