Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
No longer reload the page after switching user
Tianzhou Chenb0c7f7ad9c9e
diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vueindex 790d809327..2c0fcaed0d 100644--- a/frontend/src/components/ProfileDropdown.vue+++ b/frontend/src/components/ProfileDropdown.vue@@ -84,7 +84,6 @@<script lang="ts">import { computed } from "vue";import { useStore } from "vuex";-import { User } from "../types";export default {name: "ProfileDropdown",@@ -92,9 +91,7 @@ export default {setup(props, ctx) {const store = useStore();- const currentUser: User = computed(() =>- store.getters["auth/currentUser"]()- ).value;+ const currentUser = computed(() => store.getters["auth/currentUser"]());const logout = () => {store@@ -111,39 +108,24 @@ export default {};const switchToOwner = () => {- store- .dispatch("auth/login", {- username: "[email protected]",- password: "1024",- })- .then(() => {- // Do a full page reload to avoid stale UI state.- location.replace("/");- });+ store.dispatch("auth/login", {+ username: "[email protected]",+ password: "1024",+ });};const switchToDBA = () => {- store- .dispatch("auth/login", {- username: "[email protected]",- password: "aaa",- })- .then(() => {- // Do a full page reload to avoid stale UI state.- location.replace("/");- });+ store.dispatch("auth/login", {+ username: "[email protected]",+ password: "aaa",+ });};const switchToDeveloper = () => {- store- .dispatch("auth/login", {- username: "[email protected]",- password: "aaa",- })- .then(() => {- // Do a full page reload to avoid stale UI state.- location.replace("/");- });+ store.dispatch("auth/login", {+ username: "[email protected]",+ password: "aaa",+ });};return {