Skip to content

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

chore: more loading indicator (#15083)

ecmadao74d4d3f25953
diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
index 5f10105a58..9610adf3b8 100644
--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
@@ -6,7 +6,7 @@
:row-key="(row: AccessUser) => row.key"
:bordered="true"
:striped="true"
- :loading="!ready"
+ :loading="!ready || state.loading"
:max-height="'calc(100vh - 15rem)'"
virtual-scroll
/>
@@ -60,6 +60,7 @@ import UserAvatar from "../User/UserAvatar.vue";
import { type AccessUser } from "./types";
interface LocalState {
+ loading: boolean;
processing: boolean;
rawAccessList: AccessUser[];
}
@@ -74,6 +75,7 @@ const props = defineProps<{
}>();
const state = reactive<LocalState>({
+ loading: true,
processing: false,
rawAccessList: [],
});
@@ -280,6 +282,7 @@ const updateAccessUserList = async () => {
],
["desc", "desc"]
);
+ state.loading = false;
};
watchEffect(updateAccessUserList);
@@ -505,6 +508,9 @@ const onAccessControlUpdate = async (
};
const onSubmit = async () => {
+ if (state.processing) {
+ return;
+ }
state.processing = true;
try {
diff --git a/frontend/src/components/User/Settings/UserDataTable/index.vue b/frontend/src/components/User/Settings/UserDataTable/index.vue
index 260c35c431..247a1224ae 100644
--- a/frontend/src/components/User/Settings/UserDataTable/index.vue
+++ b/frontend/src/components/User/Settings/UserDataTable/index.vue
@@ -5,7 +5,7 @@
:data="userList"
:striped="true"
:bordered="true"
- :max-height="'calc(100vh - 20rem)'"
+ :max-height="'calc(100vh - 15rem)'"
:row-key="(data: User) => data.name"
virtual-scroll
/>
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
index 7b7ca236d2..e153ad686f 100644
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
@@ -5,6 +5,7 @@
:data="userListByGroup"
:row-key="(row) => row.name"
:bordered="true"
+ :max-height="'calc(100vh - 15rem)'"
:default-expanded-row-keys="expandedRowKeys"
/>
</template>