Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(🔥🔥🔥): update the serverInfo after creating an admin account (#433)

Luke Zhouc7f722e85ad7
diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vue
index f421869fd4..f192b20ee8 100644
--- a/frontend/src/views/auth/Signup.vue
+++ b/frontend/src/views/auth/Signup.vue
@@ -276,6 +276,11 @@ export default {
store.dispatch("auth/signup", signupInfo).then(() => {
router.push("/");
});
+ // we need to update the server info after setting up the first admin account so that the splash screen
+ // won't display the UI for registering the first admin account again.
+ if (needAdminSetup.value) {
+ store.dispatch("actuator/fetchInfo");
+ }
}
};