fix: disallow negative/zero value for storage size

This commit is contained in:
bsourisse 2023-08-10 19:39:11 +02:00
parent 0c4955603e
commit ccebfd54fe

View file

@ -330,6 +330,7 @@ export default function RepoManage(props) {
<label htmlFor='size'>Storage Size (Go)</label>
<input
type='number'
min='1'
defaultValue={
props.mode == 'edit'
? targetRepo.storageSize