UI updated
This commit is contained in:
parent
baf993f185
commit
4e68c114fd
2 changed files with 19 additions and 12 deletions
|
|
@ -13,13 +13,14 @@ new Vue({
|
||||||
el: '#vue',
|
el: '#vue',
|
||||||
mixins: [windowMixin],
|
mixins: [windowMixin],
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
|
toggleAdvanced: false,
|
||||||
cards: [],
|
cards: [],
|
||||||
hits: [],
|
hits: [],
|
||||||
withdrawsOptions: [],
|
withdrawsOptions: [],
|
||||||
cardDialog: {
|
cardDialog: {
|
||||||
show: false,
|
show: false,
|
||||||
data: {},
|
data: {counter:1},
|
||||||
temp: {}
|
temp: {}
|
||||||
},
|
},
|
||||||
cardsTable: {
|
cardsTable: {
|
||||||
|
|
@ -193,6 +194,7 @@ new Vue({
|
||||||
this.cardDialog.data = {}
|
this.cardDialog.data = {}
|
||||||
},
|
},
|
||||||
sendFormData: function () {
|
sendFormData: function () {
|
||||||
|
this.generateKeys()
|
||||||
let wallet = _.findWhere(this.g.user.wallets, {
|
let wallet = _.findWhere(this.g.user.wallets, {
|
||||||
id: this.cardDialog.data.wallet
|
id: this.cardDialog.data.wallet
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -171,9 +171,13 @@
|
||||||
v-model.trim="cardDialog.data.uid"
|
v-model.trim="cardDialog.data.uid"
|
||||||
type="text"
|
type="text"
|
||||||
label="Card UID"
|
label="Card UID"
|
||||||
hint="Card unique identificator (7 bytes in HEX)."
|
><q-tooltip>From the NFC 424 ntag card that will be loaded</q-tooltip>
|
||||||
>
|
|
||||||
</q-input>
|
</q-input>
|
||||||
|
<q-toggle
|
||||||
|
v-model="toggleAdvanced"
|
||||||
|
label="Show advanced options"
|
||||||
|
></q-toggle>
|
||||||
|
<div v-if="toggleAdvanced">
|
||||||
<q-input
|
<q-input
|
||||||
filled
|
filled
|
||||||
dense
|
dense
|
||||||
|
|
@ -214,6 +218,15 @@
|
||||||
>Zero if you don't know.</q-tooltip
|
>Zero if you don't know.</q-tooltip
|
||||||
></q-input
|
></q-input
|
||||||
>
|
>
|
||||||
|
<q-btn
|
||||||
|
unelevated
|
||||||
|
color="primary"
|
||||||
|
class="q-ml-auto"
|
||||||
|
v-on:click="generateKeys"
|
||||||
|
v-on:click.right="debugKeys"
|
||||||
|
>Generate keys</q-btn
|
||||||
|
>
|
||||||
|
</div>
|
||||||
<div class="row q-mt-lg">
|
<div class="row q-mt-lg">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="cardDialog.data.id"
|
v-if="cardDialog.data.id"
|
||||||
|
|
@ -230,14 +243,6 @@
|
||||||
type="submit"
|
type="submit"
|
||||||
>Create Card</q-btn
|
>Create Card</q-btn
|
||||||
>
|
>
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
color="grey"
|
|
||||||
class="q-ml-auto"
|
|
||||||
v-on:click="generateKeys"
|
|
||||||
v-on:click.right="debugKeys"
|
|
||||||
>Generate keys</q-btn
|
|
||||||
>
|
|
||||||
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
|
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
|
||||||
>Cancel</q-btn
|
>Cancel</q-btn
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue