feat: add readNotes and clearAllData option
This commit is contained in:
parent
bb2d68d7dc
commit
ee3b161b47
6 changed files with 166 additions and 40 deletions
|
|
@ -129,8 +129,9 @@
|
|||
<q-separator class="q-mt-sm q-mb-md"></q-separator>
|
||||
|
||||
<market-config v-if="activePage === 'market-config'" :merchants="merchants" @add-merchant="addMerchant"
|
||||
@remove-merchant="removeMerchant" :relays="relays" @add-relay="addRelay" @remove-relay="removeRelay"
|
||||
:config-ui="config?.opts" @ui-config-update="updateUiConfig" @publish-naddr="publishNaddr"></market-config>
|
||||
@remove-merchant="removeMerchant" :relays="relays" :read-notes="readNotes" @add-relay="addRelay"
|
||||
@remove-relay="removeRelay" :config-ui="config?.opts" @ui-config-update="updateUiConfig"
|
||||
@publish-naddr="publishNaddr" @clear-all-data="clearAllData" @note-read="markNoteAsRead"></market-config>
|
||||
|
||||
<user-config v-else-if="activePage === 'user-config'" :account="account" @logout="logout"
|
||||
@copy-text="copyText"></user-config>
|
||||
|
|
@ -152,15 +153,35 @@
|
|||
:stall="stalls.find(stall => stall.id == activeStall)" :products="filterProducts"
|
||||
:product-detail="activeProduct" @change-page="navigateTo" @add-to-cart="addProductToCart"></customer-stall>
|
||||
|
||||
<div v-else-if="!merchants?.length" class="text-center">
|
||||
<div v-else-if="!merchants?.length">
|
||||
<q-list class="q-mt-md" bordered>
|
||||
<q-item>
|
||||
<q-item-section avatar>
|
||||
<q-avatar>
|
||||
<q-icon color="primary" name="info" size="xl" />
|
||||
</q-avatar>
|
||||
|
||||
<span class="text-subtitle1"> <strong>You can start by adding a merchant public key </strong></span>
|
||||
<q-btn @click="setActivePage('market-config')" flat color="secondary" class="q-mb-xs">Here</q-btn>
|
||||
<br>
|
||||
<span class="text-subtitle1 q-pt-md"><strong>Or enter a nostr market profile ( <code>naddr</code>) in the
|
||||
filter input.
|
||||
</strong> </span>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section class="q-mt-sm q-ml-lg">
|
||||
<q-item-label><strong>Note</strong></q-item-label>
|
||||
|
||||
<q-item-label>
|
||||
<div class="text-caption">
|
||||
<span class="text-subtitle1"> You can start by adding a merchant public key </span>
|
||||
<q-btn @click="setActivePage('market-config')" flat color="secondary" class="q-mb-xs">Here</q-btn>
|
||||
<br>
|
||||
<span class="text-subtitle1 q-pt-md">Or enter a nostr market profile ( <code>naddr</code>) in the
|
||||
filter input.
|
||||
</span>
|
||||
</div>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side>
|
||||
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue