Skip to content

Commit

Permalink
Disable data engine when clone volume
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Jul 3, 2024
1 parent b21926d commit 72c3412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/routes/volume/BulkCloneVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ const modal = ({
const handleDataLocalityChange = (value) => updateVolumeConfig('dataLocality', value)
const handleAccessModeChange = (value) => updateVolumeConfig('accessMode', value)
const handleEncryptedCheck = (e) => updateVolumeConfig('encrypted', e.target.checked)
const handleDataEngineChange = (value) => updateVolumeConfig('dataEngine', value)
const handleNodeTagRemove = (value) => {
const oldNodeTags = volumeConfigs[tabIndex]?.nodeSelector
const newNodeSelector = oldNodeTags?.filter(tag => tag !== value) || []
Expand Down Expand Up @@ -346,7 +345,7 @@ const modal = ({
},
},
],
})(<Select onSelect={handleDataEngineChange}>
})(<Select disabled>
<Option key={'v1'} value={'v1'}>v1</Option>
<Option key={'v2'} value={'v2'}>v2</Option>
</Select>)}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/volume/CloneVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const modal = ({
},
},
],
})(<Select>
})(<Select disabled>
<Option key={'v1'} value={'v1'}>v1</Option>
<Option key={'v2'} value={'v2'}>v2</Option>
</Select>)}
Expand Down

0 comments on commit 72c3412

Please sign in to comment.