feat: navigate from chat to orders
This commit is contained in:
parent
2d522f8c47
commit
4974192b21
5 changed files with 34 additions and 3 deletions
|
|
@ -2,9 +2,18 @@ async function orderList(path) {
|
|||
const template = await loadTemplateAsync(path)
|
||||
Vue.component('order-list', {
|
||||
name: 'order-list',
|
||||
props: ['stall-id', 'adminkey', 'inkey'],
|
||||
props: ['stall-id', 'customer-pubkey-filter', 'adminkey', 'inkey'],
|
||||
template,
|
||||
|
||||
watch: {
|
||||
customerPubkeyFilter: async function (n) {
|
||||
this.search.publicKey = n
|
||||
this.search.isPaid = {label: 'All', id: null}
|
||||
this.search.isShipped = {label: 'All', id: null}
|
||||
await this.getOrders()
|
||||
}
|
||||
},
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
orders: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue