Added max amount to withdraw creation
This commit is contained in:
parent
313c40dc2b
commit
bb5b04b307
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ class CreateWithdrawData(BaseModel):
|
||||||
title: str = Query(...)
|
title: str = Query(...)
|
||||||
min_withdrawable: int = Query(..., ge=1)
|
min_withdrawable: int = Query(..., ge=1)
|
||||||
max_withdrawable: int = Query(..., ge=1)
|
max_withdrawable: int = Query(..., ge=1)
|
||||||
uses: int = Query(..., ge=1)
|
uses: int = Query(..., ge=1, le=250)
|
||||||
wait_time: int = Query(..., ge=1)
|
wait_time: int = Query(..., ge=1)
|
||||||
is_unique: bool
|
is_unique: bool
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
<q-input filled dense v-model.trim="formDialog.data.title" type="text" label="Link title *"></q-input>
|
<q-input filled dense v-model.trim="formDialog.data.title" type="text" label="Link title *"></q-input>
|
||||||
<q-input filled dense v-model.number="formDialog.data.min_withdrawable" type="number" min="10" label="Min withdrawable (sat, at least 10) *"></q-input>
|
<q-input filled dense v-model.number="formDialog.data.min_withdrawable" type="number" min="10" label="Min withdrawable (sat, at least 10) *"></q-input>
|
||||||
<q-input filled dense v-model.number="formDialog.data.max_withdrawable" type="number" min="10" label="Max withdrawable (sat, at least 10) *"></q-input>
|
<q-input filled dense v-model.number="formDialog.data.max_withdrawable" type="number" min="10" label="Max withdrawable (sat, at least 10) *"></q-input>
|
||||||
<q-input filled dense v-model.number="formDialog.data.uses" type="number" :default="1" label="Amount of uses *"></q-input>
|
<q-input filled dense v-model.number="formDialog.data.uses" type="number" max="250" :default="1" label="Amount of uses *"></q-input>
|
||||||
<div class="row q-col-gutter-none">
|
<div class="row q-col-gutter-none">
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<q-input filled dense v-model.number="formDialog.data.wait_time" type="number" :default="1" label="Time between withdrawals *">
|
<q-input filled dense v-model.number="formDialog.data.wait_time" type="number" :default="1" label="Time between withdrawals *">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue