diff --git a/src/components/Forms/Workload/VolumeSettings/VolumeTemplateList/Card.jsx b/src/components/Forms/Workload/VolumeSettings/VolumeTemplateList/Card.jsx index 7bff5b58370..ca30bbc9cec 100644 --- a/src/components/Forms/Workload/VolumeSettings/VolumeTemplateList/Card.jsx +++ b/src/components/Forms/Workload/VolumeSettings/VolumeTemplateList/Card.jsx @@ -25,7 +25,7 @@ import { List } from 'components/Base' import styles from './index.scss' -const Card = ({ volume, onDelete, onEdit }) => { +const Card = ({ volume, onDelete, onEdit, banEdit = false }) => { const handleDelete = () => onDelete(volume.metadata.name) const handleEdit = () => onEdit(volume) @@ -70,6 +70,22 @@ const Card = ({ volume, onDelete, onEdit }) => { ) + if (banEdit) { + return ( + + ) + } + return ( ))} )} - {this.renderAddVolume()} + {!hideVolumeSetting && this.renderAddVolume()} ) diff --git a/src/components/Forms/Workload/VolumeSettings/index.jsx b/src/components/Forms/Workload/VolumeSettings/index.jsx index 3dec2b9c03e..9cb7bc99be4 100644 --- a/src/components/Forms/Workload/VolumeSettings/index.jsx +++ b/src/components/Forms/Workload/VolumeSettings/index.jsx @@ -666,7 +666,7 @@ class VolumeSettings extends React.Component { /> )}
- {isSTS && !hideVolumeSetting && ( + {isSTS && ( )}