mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-08-04 21:52:41 +00:00
fix bug with server setting test
This commit is contained in:
parent
0cd07d4f90
commit
44d98afac0
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import { fly } from 'svelte/transition';
|
||||
import { URLStore } from '$lib/common/stores.js';
|
||||
import { APIKeyStore } from '$lib/common/stores.js';
|
||||
import { getUsers } from '$lib/common/apiFunctions.svelte';
|
||||
import { getAPIKeys } from '$lib/common/apiFunctions.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import ApiKeyTimeLeft from './ServerSettings/APIKeyTimeLeft.svelte';
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
let apiKeyInputState = 'password';
|
||||
|
||||
function TestServerSettings() {
|
||||
getUsers()
|
||||
getAPIKeys()
|
||||
.then(() => {
|
||||
apiStatus = 'succeeded';
|
||||
})
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
<p class="text-xs text-base-content text-italics mb-8">URL for your headscale server instance</p>
|
||||
<label class="block text-secondary text-sm font-bold mb-2" for="password">
|
||||
Headscale API Key
|
||||
{#if (apiStatus = 'succeeded')}
|
||||
{#if apiStatus == 'succeeded'}
|
||||
<ApiKeyTimeLeft />
|
||||
{/if}
|
||||
</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue