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}>
<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>
<button type="submit">Submit</button>
</form>

View File

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

View File

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

View File

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