File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 8
8
strong
9
9
i {{$store.state.store.name}}
10
10
.navbar-end.is-flex-touch
11
- .navbar-item
11
+ .navbar-item ( v-if = "$store.state.store?.checkout_settings?.pos_screen_enabled" )
12
12
.field
13
13
p.control
14
14
a.button.is-light ( @click ="openPOS" )
Original file line number Diff line number Diff line change @@ -89,6 +89,14 @@ import mixins from "@/utils/mixins"
89
89
90
90
export default {
91
91
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
+ },
92
100
data () {
93
101
return {
94
102
items: {
Original file line number Diff line number Diff line change 1
- const VERSION = "0.7.4.0 "
1
+ const VERSION = "0.7.4.1 "
2
2
3
3
export default VERSION
You can’t perform that action at this time.
0 commit comments