Skip to content

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

feat(sql-editor): disallowing copy/paste the query result (#6854)

Liu Jid3f8491c448b
diff --git a/frontend/src/components/InstanceForm/InstanceForm.vue b/frontend/src/components/InstanceForm/InstanceForm.vue
index 266ae8fcb3..d260edbbc3 100644
--- a/frontend/src/components/InstanceForm/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm/InstanceForm.vue
@@ -61,8 +61,8 @@
</div>
<div
- class="sm:col-span-2 ml-0 sm:ml-3"
v-if="subscriptionStore.currentPlan !== PlanType.FREE"
+ class="sm:col-span-2 ml-0 sm:ml-3"
>
<label for="activation" class="textlabel block">
{{ $t("subscription.instance-assignment.assign-license") }}
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
index 77d7785ef3..00f65c0946 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
@@ -1,5 +1,5 @@
<template>
- <div class="relative">
+ <div class="relative select-none">
<!-- eslint-disable-next-line vue/no-v-html -->
<div ref="wrapperRef" class="overflow-hidden" v-html="html"></div>
<div v-if="truncated" class="absolute right-0 top-1/2 translate-y-[-50%]">