fix: terminate VaultGate connection after vault lockout #100

Open
CleverWild wants to merge 101 commits from terminate-VaultGate-connection-after-vault-lockout into main
Showing only changes of commit 976c11902c - Show all commits

View File

@@ -15,11 +15,11 @@ class ServerConnectionScreen extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final connectionState = ref.watch(connectionManagerProvider);
if (connectionState.value != null) {
WidgetsBinding.instance.addPostFrameCallback((_) {
ref.listen(connectionManagerProvider, (_, next) {
if (next.value != null && context.mounted) {
context.router.replace(const VaultSetupRoute());
});
}
}
});
final body = switch (connectionState) {
AsyncLoading() => const CircularProgressIndicator(),