Skip to content

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

fix: dropped icon (#9424)

Liu Jie88afaf3ed71
diff --git a/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/TableColumnEditor.vue b/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/TableColumnEditor.vue
index e29427923e..f7a667424f 100644
--- a/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/TableColumnEditor.vue
+++ b/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/TableColumnEditor.vue
@@ -356,7 +356,7 @@ const columns = computed(() => {
render: (column) => {
return h(OperationCell, {
column,
- readonly: props.readonly || !isDroppedColumn(column),
+ dropped: isDroppedColumn(column),
disabled: props.disableChangeTable,
onDrop: () => emit("drop", column),
onRestore: () => emit("restore", column),
diff --git a/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/components/OperationCell.vue b/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/components/OperationCell.vue
index 656cd4e8c9..869bd96af9 100644
--- a/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/components/OperationCell.vue
+++ b/frontend/src/components/SchemaEditorV1/Panels/TableColumnEditor/components/OperationCell.vue
@@ -1,6 +1,6 @@
<template>
<div class="flex justify-start items-center">
- <NTooltip v-if="!readonly" trigger="hover" to="body">
+ <NTooltip v-if="!dropped" trigger="hover" to="body">
<template #trigger>
<MiniActionButton tag="div" :disabled="disabled" @click="$emit('drop')">
<TrashIcon class="w-4 h-4" />
@@ -31,7 +31,7 @@ import { Column } from "@/types/v1/schemaEditor";
defineProps<{
column: Column;
- readonly?: boolean;
+ dropped?: boolean;
disabled?: boolean;
}>();
defineEmits<{
diff --git a/frontend/src/components/SchemaEditorV1/Panels/TableList/TableList.vue b/frontend/src/components/SchemaEditorV1/Panels/TableList/TableList.vue
index 5811f02708..1a93c476c5 100644
--- a/frontend/src/components/SchemaEditorV1/Panels/TableList/TableList.vue
+++ b/frontend/src/components/SchemaEditorV1/Panels/TableList/TableList.vue
@@ -248,7 +248,7 @@ const columns = computed(() => {
render: (table) => {
return h(OperationCell, {
table,
- readonly: !isDroppedTable(table),
+ dropped: isDroppedTable(table),
onDrop: () => handleDropTable(table),
onRestore: () => handleRestoreTable(table),
});
diff --git a/frontend/src/components/SchemaEditorV1/Panels/TableList/components/OperationCell.vue b/frontend/src/components/SchemaEditorV1/Panels/TableList/components/OperationCell.vue
index 6007776027..b634fe5436 100644
--- a/frontend/src/components/SchemaEditorV1/Panels/TableList/components/OperationCell.vue
+++ b/frontend/src/components/SchemaEditorV1/Panels/TableList/components/OperationCell.vue
@@ -1,6 +1,6 @@
<template>
<div class="flex justify-start items-center">
- <NTooltip v-if="!readonly" trigger="hover" to="body">
+ <NTooltip v-if="!dropped" trigger="hover" to="body">
<template #trigger>
<heroicons:trash
class="w-4 h-auto text-gray-500 cursor-pointer hover:opacity-80"
@@ -25,7 +25,7 @@ import { Table } from "@/types/v1/schemaEditor";
defineProps<{
table: Table;
- readonly?: boolean;
+ dropped?: boolean;
}>();
defineEmits<{
(event: "drop"): void;