Skip to content

Commit

Permalink
Version 0.7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Apr 5, 2023
1 parent a10c5dd commit 204cbc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
strong
i {{$store.state.store.name}}
.navbar-end.is-flex-touch
.navbar-item
.navbar-item(v-if="$store.state.store?.checkout_settings?.pos_screen_enabled")
.field
p.control
a.button.is-light(@click="openPOS")
Expand Down
8 changes: 8 additions & 0 deletions pages/pos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ import mixins from "@/utils/mixins"
export default {
mixins: [mixins],
async asyncData({ store, redirect }) {
try {
await store.dispatch("syncStats")
} catch (e) {}
if (!store.state.store?.checkout_settings?.pos_screen_enabled) {
return redirect("/")
}
},
data() {
return {
items: {
Expand Down
2 changes: 1 addition & 1 deletion version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const VERSION = "0.7.4.0"
const VERSION = "0.7.4.1"

export default VERSION

0 comments on commit 204cbc3

Please sign in to comment.