Skip to content

Commit 4de49cb

Browse files
authored
Update not bull button title (#407)
* Fix button behavior: Reverse logic for nullable/not nullable toggle * fix: updated translation key to 'nullable' and refactored button title
1 parent b19b3bb commit 4de49cb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/components/EditorSidePanel/TablesTab/TableField.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ export default function TableField({ data, tid, index }) {
134134
</Col>
135135
<Col span={3}>
136136
<Button
137-
type={data.notNull ? "primary" : "tertiary"}
138-
title={t("not_null")}
139-
theme={data.notNull ? "solid" : "light"}
137+
138+
type={data.notNull ? "tertiary" : "primary"}
139+
title={t("nullable")}
140+
theme={data.notNull ? "light" : "solid"}
140141
onClick={() => {
141142
setUndoStack((prev) => [
142143
...prev,

src/i18n/locales/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const en = {
113113
type: "Type",
114114
null: "Null",
115115
not_null: "Not null",
116+
nullable: "Nullable",
116117
primary: "Primary",
117118
unique: "Unique",
118119
autoincrement: "Autoincrement",

src/i18n/locales/tm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const tm = {
113113
type: "வகை",
114114
null: "பூஜ்ஜியம்",
115115
not_null: "பூஜ்ஜியம் அல்ல",
116+
nullable: "காலியாக அனுமதி",
116117
primary: "முதன்மை",
117118
unique: "தனித்துவம்",
118119
autoincrement: "தானாக அதிகரிப்பு",

0 commit comments

Comments
 (0)