Update index.html

prettier
This commit is contained in:
iWarpBTC 2022-07-17 12:23:56 +02:00 committed by Lee Salminen
parent 5b8d317441
commit c04b0a1905

View file

@ -126,8 +126,7 @@
v-model.trim="cardDialog.data.card_name" v-model.trim="cardDialog.data.card_name"
type="text" type="text"
label="Card name " label="Card name "
></q-input ></q-input>
>
<q-input <q-input
filled filled
dense dense
@ -189,7 +188,6 @@
</q-dialog> </q-dialog>
</div> </div>
{% endblock %} {% block scripts %} {{ window_vars(user) }} {% endblock %} {% block scripts %} {{ window_vars(user) }}
<script> <script>
const mapCards = obj => { const mapCards = obj => {
@ -232,7 +230,7 @@
align: 'left', align: 'left',
label: 'Withdraw ID', label: 'Withdraw ID',
field: 'withdraw' field: 'withdraw'
}, }
], ],
pagination: { pagination: {
rowsPerPage: 10 rowsPerPage: 10
@ -251,11 +249,9 @@
this.g.user.wallets[0].inkey this.g.user.wallets[0].inkey
) )
.then(function (response) { .then(function (response) {
self.cards = response.data self.cards = response.data.map(function (obj) {
.map(function (obj) { return mapCards(obj)
})
return mapCards(obj)
})
console.log(self.cards) console.log(self.cards)
}) })
}, },
@ -269,13 +265,12 @@
this.g.user.wallets[0].inkey this.g.user.wallets[0].inkey
) )
.then(function (response) { .then(function (response) {
self.withdrawsOptions = response.data self.withdrawsOptions = response.data.map(function (obj) {
.map(function (obj) { return {
return { label: [obj.title, ' - ', obj.id].join(''),
label: [obj.title, ' - ', obj.id].join(''), value: obj.id
value: obj.id }
} })
})
console.log(self.withdraws) console.log(self.withdraws)
}) })
}, },