@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.131 → 0.0.1-alpha.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38198,13 +38198,13 @@ const getEnrichedColumnsWithControls = ({
|
|
|
38198
38198
|
label: "Edit",
|
|
38199
38199
|
key: "edit",
|
|
38200
38200
|
// icon: editIcon || <EditOutlined size={12} />,
|
|
38201
|
-
disabled: value
|
|
38201
|
+
disabled: value?.permissions && value.permissions.canUpdate ? !value.permissions?.canUpdate : false
|
|
38202
38202
|
},
|
|
38203
38203
|
{
|
|
38204
38204
|
label: "Delete",
|
|
38205
38205
|
key: "delete",
|
|
38206
38206
|
// icon: deleteIcon || <DeleteOutlined size={12} />,
|
|
38207
|
-
disabled: value
|
|
38207
|
+
disabled: value?.permissions && value.permissions.canDelete ? !value.permissions?.canDelete : false
|
|
38208
38208
|
}
|
|
38209
38209
|
],
|
|
38210
38210
|
onClick: ({ key, domEvent }) => {
|