Skip to content

Commit 204cbc3

Browse files
committed
Version 0.7.4.1
1 parent a10c5dd commit 204cbc3

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

components/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
strong
99
i {{$store.state.store.name}}
1010
.navbar-end.is-flex-touch
11-
.navbar-item
11+
.navbar-item(v-if="$store.state.store?.checkout_settings?.pos_screen_enabled")
1212
.field
1313
p.control
1414
a.button.is-light(@click="openPOS")

pages/pos.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ import mixins from "@/utils/mixins"
8989
9090
export default {
9191
mixins: [mixins],
92+
async asyncData({ store, redirect }) {
93+
try {
94+
await store.dispatch("syncStats")
95+
} catch (e) {}
96+
if (!store.state.store?.checkout_settings?.pos_screen_enabled) {
97+
return redirect("/")
98+
}
99+
},
92100
data() {
93101
return {
94102
items: {

version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const VERSION = "0.7.4.0"
1+
const VERSION = "0.7.4.1"
22

33
export default VERSION

0 commit comments

Comments
 (0)