Skip to content

Commit 8bb5f71

Browse files
abdalla-tbbram2w
authored andcommitted
Added a tooltip to indicate that indexing is not available for this field type.
1 parent c67f49e commit 8bb5f71

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "bug",
3+
"message": "Added a tooltip to indicate that indexing is not available for this field type.",
4+
"domain": "database",
5+
"issue_number": 3810,
6+
"bullet_points": [],
7+
"created_at": "2025-09-01"
8+
}

web-frontend/modules/database/components/field/FieldForm.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@
141141
>
142142
<div class="control__elements flex justify-content-end">
143143
<SwitchInput
144+
v-tooltip="
145+
!canHaveDbIndex
146+
? $t('fieldForm.dbIndexDisabledTooltip')
147+
: null
148+
"
144149
:value="!!canHaveDbIndex && values.db_index"
145150
:small="true"
146151
:disabled="!canHaveDbIndex"

web-frontend/modules/database/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@
326326
"dbIndex": "Index",
327327
"dbIndexError": "This field type cannot have an index. Please remove it before saving or change the field type.",
328328
"dbIndexDescription": "Indexing can significantly improve filtering performance, but slows down create, update, and delete operations.",
329-
"defaultValueDisabledByConstraint": "Cannot set a default value with a unique constraint"
329+
"defaultValueDisabledByConstraint": "Cannot set a default value with a unique constraint",
330+
"dbIndexDisabledTooltip": "Indexing is not available for this field type."
330331
},
331332
"fieldSelectThroughFieldSubForm": {
332333
"noTable": "You need at least one link to table field to create this field.",

0 commit comments

Comments
 (0)