mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 10:29:11 +00:00
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
This commit is contained in:
parent
b19b3bb949
commit
4de49cb3cc
@ -134,9 +134,10 @@ export default function TableField({ data, tid, index }) {
|
|||||||
</Col>
|
</Col>
|
||||||
<Col span={3}>
|
<Col span={3}>
|
||||||
<Button
|
<Button
|
||||||
type={data.notNull ? "primary" : "tertiary"}
|
|
||||||
title={t("not_null")}
|
type={data.notNull ? "tertiary" : "primary"}
|
||||||
theme={data.notNull ? "solid" : "light"}
|
title={t("nullable")}
|
||||||
|
theme={data.notNull ? "light" : "solid"}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setUndoStack((prev) => [
|
setUndoStack((prev) => [
|
||||||
...prev,
|
...prev,
|
||||||
|
@ -113,6 +113,7 @@ const en = {
|
|||||||
type: "Type",
|
type: "Type",
|
||||||
null: "Null",
|
null: "Null",
|
||||||
not_null: "Not null",
|
not_null: "Not null",
|
||||||
|
nullable: "Nullable",
|
||||||
primary: "Primary",
|
primary: "Primary",
|
||||||
unique: "Unique",
|
unique: "Unique",
|
||||||
autoincrement: "Autoincrement",
|
autoincrement: "Autoincrement",
|
||||||
|
@ -113,6 +113,7 @@ const tm = {
|
|||||||
type: "வகை",
|
type: "வகை",
|
||||||
null: "பூஜ்ஜியம்",
|
null: "பூஜ்ஜியம்",
|
||||||
not_null: "பூஜ்ஜியம் அல்ல",
|
not_null: "பூஜ்ஜியம் அல்ல",
|
||||||
|
nullable: "காலியாக அனுமதி",
|
||||||
primary: "முதன்மை",
|
primary: "முதன்மை",
|
||||||
unique: "தனித்துவம்",
|
unique: "தனித்துவம்",
|
||||||
autoincrement: "தானாக அதிகரிப்பு",
|
autoincrement: "தானாக அதிகரிப்பு",
|
||||||
|
Loading…
Reference in New Issue
Block a user