Temporarily disable StaffLDB

This commit is contained in:
Fred Boniface 2023-06-28 12:43:32 +01:00
parent a4ba90a987
commit 166ca1fe5f
4 changed files with 15 additions and 6 deletions

View File

@ -10,7 +10,7 @@
<Island {variables}> <Island {variables}>
<form action={variables.action}> <form action={variables.action}>
<input class="form-input" type="text" id="input-headcode" name={variables.queryName} placeholder={variables.placeholder}> <input class="form-input" type="text" id="input-headcode" name={variables.queryName} placeholder={variables.placeholder} autocomplete="off">
<br> <br>
<button type="submit">Submit</button> <button type="submit">Submit</button>
</form> </form>

View File

@ -36,7 +36,8 @@
{#if !staff} {#if !staff}
<PublicLdb {station} bind:title={title} /> <PublicLdb {station} bind:title={title} />
{:else} {:else}
<StaffLdb {station} /> <PublicLdb {station} bind:title={title} />
<!--<StaffLdb {station} bind:title={title} /> -- Temporary, Disable StaffLdb - it isn't implemented -->
{/if} {/if}
<Nav /> <Nav />

View File

@ -31,9 +31,13 @@
<Loading/> <Loading/>
{:else} {:else}
<Island> <Island>
<p>Web-app Version<br>{"Not Implemented"}</p> <p>Web-app Version<br><span class="data">{"2023.7.1-Svelte-Dev"}</span></p>
<p>API Server Version<br>{data.backend}</p> <p>API Server Version<br><span class="data">{data.backend}</span></p>
<p>DBManager Version<br>{data['db-manager']}</p> <p>DBManager Version<br><span class="data">{data['db-manager']}</span></p>
</Island> </Island>
{/if} {/if}
<Nav /> <Nav />
<style>
.data {color: white;}
</style>

View File

@ -32,6 +32,10 @@
const res = await fetchData(id); const res = await fetchData(id);
if (res) { if (res) {
data = res; data = res;
if (!data.length) {
error = true;
errMsg = "No services found"
}
} }
isLoading = false; isLoading = false;
}) })