Skip to content

Commit

Permalink
Add store POS icon
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Apr 3, 2023
1 parent 1fe6a0f commit 5c4823c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
strong
i {{$store.state.store.name}}
.navbar-end.is-flex-touch
.navbar-item
.field
p.control
a.button.is-light(@click="openPOS")
span.icon.cartitem(style="width: 40px")
i.fa.fa-lg.fa-calculator
span.is-hidden-mobile POS
.navbar-item
.field
p.control
Expand Down Expand Up @@ -51,6 +58,9 @@ export default {
},
methods: {
...mapActions(["openSidebarCart"]),
openPOS() {
this.$router.push("/pos")
},
},
}
</script>
Expand Down
6 changes: 5 additions & 1 deletion pages/pos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ export default {
price: this.total,
})
.then((res) => {
this.total = "0"
this.items = {
amount: "0",
discount: "0",
tip: "0",
}
window.bitcart.onModalReceiveMessage((data) => {
if (typeof data.data === "object" && "status" in data.data) {
this.status = data.data.status
Expand Down

0 comments on commit 5c4823c

Please sign in to comment.