mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-24 02:55:46 +00:00
disabled rollover when not possible to rollover
This commit is contained in:
parent
2ad12f5a92
commit
cd0b84a679
2 changed files with 3 additions and 2 deletions
|
|
@ -68,7 +68,7 @@
|
|||
</svg>
|
||||
{/if}
|
||||
</button>
|
||||
<RolloverApi />
|
||||
<RolloverApi {apiStatus} />
|
||||
</div>
|
||||
<p class="text-xs text-base-content text-italics mb-8">Generate an API key for your headscale instance and place it here.</p>
|
||||
{#if apiStatus != 'succeeded'}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
import { alertStore, APIKeyStore } from '$lib/common/stores';
|
||||
let keyList = [new APIKey()];
|
||||
let currentKey = new APIKey();
|
||||
export let apiStatus = '';
|
||||
|
||||
// get current API keys
|
||||
// Match to current key
|
||||
|
|
@ -46,5 +47,5 @@
|
|||
getAPIKeysAction();
|
||||
}}
|
||||
class="btn btn-sm btn-secondary capitalize ml-4"
|
||||
type="button">Rollover API Key</button
|
||||
type="button" disabled="{apiStatus != 'succeeded'}">Rollover API Key</button
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue