Skip to content

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

Add (readonly) to the select item if the data source is readonly

天舟c10d3b36e23d
diff --git a/frontend/src/components/DataSourceSelect.vue b/frontend/src/components/DataSourceSelect.vue
index 9075f67a53..2319cd03ef 100644
--- a/frontend/src/components/DataSourceSelect.vue
+++ b/frontend/src/components/DataSourceSelect.vue
@@ -16,7 +16,12 @@
:value="dataSource.id"
:selected="dataSource.id == state.selectedId"
>
- {{ dataSource.name }}
+ <template v-if="dataSource.type == 'RO'">
+ {{ dataSource.name }} (readonly)
+ </template>
+ <template v-else>
+ {{ dataSource.name }}
+ </template>
</option>
</select>
</template>