v-if all diagonalley things

This commit is contained in:
ben 2022-12-20 08:42:11 +00:00
parent 5765c3c8c9
commit 1a820b4dac
3 changed files with 15 additions and 6 deletions

View File

@ -253,6 +253,7 @@
>
</q-select>
<q-input
v-if="diagonalley"
v-if="keys"
filled
dense
@ -260,6 +261,8 @@
label="Public Key"
></q-input>
<q-input
v-if="diagonalley"
v-if="keys"
filled
dense
@ -267,7 +270,7 @@
label="Private Key"
></q-input>
<!-- NOSTR -->
<div class="row">
<div v-if="diagonalley" class="row">
<div class="col-5">
<q-btn unelevated @click="generateKeys" color="primary"
>Generate keys</q-btn
@ -287,8 +290,8 @@
v-model.trim="stallDialog.data.shippingzones"
label="Shipping Zones"
></q-select>
<!-- NOSTR -->
<!-- <q-select
<q-select
v-if="diagonalley"
:options="relayOptions"
filled
dense
@ -297,18 +300,19 @@
label="Relays"
></q-select>
<q-input
v-if="diagonalley"
filled
dense
v-model.trim="stallDialog.data.crelays"
label="Custom relays (seperate by comma)"
></q-input>
<q-input
v-if="diagonalley"
filled
dense
v-model.trim="stallDialog.data.nostrShops"
label="Nostr shop public keys (seperate by comma)"
></q-input> -->
></q-input>
<p>
<strong><small>Nostr support coming soon!</small></strong>
</p>
@ -1189,6 +1193,7 @@
},
keys: null,
diagonAlley: false,
diagonalley: false,
products: [],
orders: [],
stalls: [],

View File

@ -102,7 +102,7 @@
<q-card-section>
<q-separator></q-separator>
<q-list>
<q-expansion-item group="extras" icon="vpn_key" label="Keys"
<q-expansion-item v-if="diagonalley" group="extras" icon="vpn_key" label="Keys"
><p>
Bellow are the keys needed to contact the merchant. They are
stored in the browser!
@ -197,6 +197,7 @@
</div>
<!-- RESTORE KEYS DIALOG -->
<q-dialog
v-if="diagonalley"
v-model="keysDialog.show"
position="top"
@hide="clearRestoreKeyDialog"
@ -258,6 +259,7 @@
messages: {},
stall: null,
selectedOrder: null,
diagonalley: false,
products: [],
orders: [],
user: {

View File

@ -163,6 +163,7 @@
label="Name *optional"
></q-input>
<q-input
v-if="diagonalley"
filled
dense
v-model.trim="checkoutDialog.data.pubkey"
@ -279,6 +280,7 @@
stall: null,
products: [],
searchText: null,
diagonalley:false,
cart: {
total: 0,
size: 0,