mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-03 06:22:24 +02:00
fix: disallow negative/zero value for storage size
This commit is contained in:
parent
0c4955603e
commit
ccebfd54fe
|
@ -330,6 +330,7 @@ export default function RepoManage(props) {
|
||||||
<label htmlFor='size'>Storage Size (Go)</label>
|
<label htmlFor='size'>Storage Size (Go)</label>
|
||||||
<input
|
<input
|
||||||
type='number'
|
type='number'
|
||||||
|
min='1'
|
||||||
defaultValue={
|
defaultValue={
|
||||||
props.mode == 'edit'
|
props.mode == 'edit'
|
||||||
? targetRepo.storageSize
|
? targetRepo.storageSize
|
||||||
|
|
Loading…
Reference in a new issue