Added API keys. Minor modifications for other views.

This commit is contained in:
Tom
2025-03-27 16:31:07 +00:00
parent b1bac758e3
commit 298d351e5d
31 changed files with 499 additions and 24 deletions

View File

@ -52,7 +52,7 @@ export class ImpersonationComponent implements OnInit {
.subscribe(async _ =>
await setTimeout(async () =>
await this.router.navigate([url.substring(1)]), 500));
this.keyService.fetch(true)
this.keyService.fetch()
.pipe(timeout(3000), first())
.subscribe(async (d: ApiKey[]) => {
if (d.length > 0)

View File

@ -39,7 +39,7 @@ export class TtsLoginComponent implements OnInit, OnDestroy {
this.subscriptions.push(this.events.listen('impersonation', _ => {
this.selected_api_key = undefined;
this.keyService.fetch(true)
this.keyService.fetch()
.pipe(timeout(3000), first())
.subscribe(d => this.api_keys = d);
}));