mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
clean up doco
This commit is contained in:
parent
ac15a15caf
commit
856e5cb053
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@
|
|||
appSettings.apiKeyList = (await response.json()).apiKeys;
|
||||
appSettings.apiTested = true;
|
||||
|
||||
// determine the remaining time for the key we are currently using
|
||||
// determine the remaining time for the key we are currently using. Note: Nested Async
|
||||
appSettings.apiKeyList.forEach((key) => {
|
||||
if (persistentAppSettings.headscaleAPIKey.startsWith(key.prefix)) {
|
||||
getKeyRemainingTime(new Date(key.expiration));
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
export async function rotateAPIKey() {
|
||||
for (const key of appSettings.apiKeyList) {
|
||||
|
||||
|
||||
// select the current key being used in the app settings
|
||||
if (persistentAppSettings.headscaleAPIKey.startsWith(key.prefix)) {
|
||||
let currentKey = key;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
rotateButtonDisabled = true;
|
||||
rotateAPIKey().then(() => {
|
||||
rotateButtonDisabled = false;
|
||||
console.log(appSettings.apiKeyList);
|
||||
// console.log(appSettings.apiKeyList);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue