Skip to content

Commit

Permalink
removes modal 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 12c71c5 commit 1e60fb1
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/routes/volume/UpdateSnapshotMaxCountModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,6 @@ const modal = ({
required: true,
message: 'Please input volume snapshotMaxCount',
},
{
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: '270px' }} />)}
</FormItem>
Expand Down

0 comments on commit 1e60fb1

Please sign in to comment.