Skip to content

Commit

Permalink
removes create vol fe validation
Browse files Browse the repository at this point in the history
Signed-off-by: scures <scurescu@suse.com>
  • Loading branch information
scures authored and innobead committed Jan 19, 2024
1 parent 1e60fb1 commit f865934
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/routes/volume/CreateVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,27 +294,6 @@ const modal = ({
wrapperCol={{ span: 14 }}>
{getFieldDecorator('snapshotMaxCount', {
initialValue: 0,
rules: [
{
validator: (rule, value, callback) => {
if (value === '' || typeof value !== 'number') {
callback()
return
}
if (value === 0) {
callback()
}
if (value === 1) {
callback('Set 0 to inherit global settings, or a value from 2 to 250')
}
if (value < 2 || value > 250) {
callback('Set 0 to inherit global settings, or a value from 2 to 250')
} else {
callback()
}
},
},
],
})(<InputNumber style={{ width: '250px' }} />) }
</FormItem>
<div style={{ display: 'flex', gap: 10 }}>
Expand Down

0 comments on commit f865934

Please sign in to comment.