add alert for sale

This commit is contained in:
liangping 2021-11-23 09:55:40 +08:00
parent 1e3bc9cf22
commit a198e3c281

View File

@ -28,6 +28,14 @@
{{ type === 0 ? target: base }} {{ type === 0 ? target: base }}
</b-input-group-append> </b-input-group-append>
</b-input-group> </b-input-group>
<b-alert
variant="danger"
:show="type === 1 && amount > available"
>
<div class="alert-body">
Insufficient available amount
</div>
</b-alert>
</b-form-group> </b-form-group>
<b-form-group> <b-form-group>
<label for="total"> <label for="total">
@ -47,7 +55,7 @@
</b-input-group> </b-input-group>
<b-alert <b-alert
variant="danger" variant="danger"
:show="total > available" :show="type === 0 && total > available"
> >
<div class="alert-body"> <div class="alert-body">
Insufficient available amount Insufficient available amount