feat: navigate from chat to orders

This commit is contained in:
Vlad Stan 2023-03-29 17:02:31 +03:00
parent 2d522f8c47
commit 4974192b21
5 changed files with 34 additions and 3 deletions

View file

@ -1,7 +1,21 @@
<div>
<q-card>
<q-card-section>
<h6 class="text-subtitle1 q-my-none">Messages</h6>
<div class="row">
<div class="col-6">
<h6 class="text-subtitle1 q-my-none">Messages</h6>
</div>
<div class="col-6">
<q-btn
v-if="activePublicKey"
@click="showClientOrders"
unelevated
outline
class="float-right"
>Client Orders</q-btn
>
</div>
</div>
</q-card-section>
<q-card-section class="q-pa-none">
<q-separator></q-separator>

View file

@ -81,6 +81,9 @@ async function directMessages(path) {
LNbits.utils.notifyApiError(error)
}
},
showClientOrders: function () {
this.$emit('customer-selected', this.activePublicKey)
},
selectActiveCustomer: async function () {
await this.getDirectMessages(this.activePublicKey)
},