Follow-up comment fix (#18067)

* Fix ssh account switching

* Npx prettier

* Follow-up comment fix
This commit is contained in:
Bernd Schoolmann
2025-12-19 17:47:14 +01:00
committed by GitHub
parent f4037f404e
commit 60b84361d2

View File

@@ -89,9 +89,9 @@ export class SshAgentService implements OnDestroy {
filter(({ enabled }) => enabled),
map(({ message }) => message),
withLatestFrom(this.authService.activeAccountStatus$, this.accountService.activeAccount$),
// This switchMap handles unlocking the vault if it is locked:
// - If the vault is locked, we will wait for it to be unlocked.
// - If the vault is not unlocked within the timeout, we will abort the flow.
// This switchMap handles unlocking the vault if it is not unlocked:
// - If the vault is locked or logged out, we will wait for it to be unlocked:
// - If the vault is not unlocked in within the timeout, we will abort the flow.
// - If the vault is unlocked, we will continue with the flow.
// switchMap is used here to prevent multiple requests from being processed at the same time,
// and will cancel the previous request if a new one is received.