deshabilitado el boton de No Nulo, cuando es PK

This commit is contained in:
pokepato2002 2025-05-01 20:00:43 -06:00
parent 7e12237459
commit a469655981

View File

@ -137,6 +137,8 @@ export default function TableField({ data, tid, index }) {
type={data.notNull ? "primary" : "tertiary"} type={data.notNull ? "primary" : "tertiary"}
title={t("not_null")} title={t("not_null")}
theme={data.notNull ? "solid" : "light"} theme={data.notNull ? "solid" : "light"}
disabled={data.primary ? true: false }
onClick={() => { onClick={() => {
setUndoStack((prev) => [ setUndoStack((prev) => [
...prev, ...prev,