Allow editing old configs
This commit is contained in:
parent
47b77d6744
commit
ac9f5d5d1e
|
@ -49,12 +49,15 @@
|
||||||
|
|
||||||
const requiredTooltip = isRequired && "Required columns must be writable"
|
const requiredTooltip = isRequired && "Required columns must be writable"
|
||||||
|
|
||||||
|
const editEnabled =
|
||||||
|
!isRequired ||
|
||||||
|
columnToPermissionOptions(c) !== PERMISSION_OPTIONS.WRITABLE
|
||||||
const options = [
|
const options = [
|
||||||
{
|
{
|
||||||
icon: "Edit",
|
icon: "Edit",
|
||||||
value: PERMISSION_OPTIONS.WRITABLE,
|
value: PERMISSION_OPTIONS.WRITABLE,
|
||||||
tooltip: requiredTooltip || "Writable",
|
tooltip: (!editEnabled && requiredTooltip) || "Writable",
|
||||||
disabled: isRequired,
|
disabled: !editEnabled,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
if ($datasource.type === "viewV2") {
|
if ($datasource.type === "viewV2") {
|
||||||
|
|
Loading…
Reference in New Issue