Commit 842ef39b authored by christianrhansen's avatar christianrhansen

using platform detection via vuex

parent a1208988
Pipeline #11243 passed with stage
in 8 minutes and 56 seconds
......@@ -20,6 +20,7 @@
</template>
<script>
import { mapGetters } from 'vuex'
import Cell from './Cell'
import StyleTag from '../../shared/elements/StyleTag'
import { DateTime } from 'luxon'
......@@ -41,15 +42,15 @@
}
},
computed: {
...mapGetters({
isMobile: 'globalSettings/getIsMobile'
}),
queryPositionX () {
if (this.$route.query.x) return parseInt(this.$route.query.x)
else return null
},
globalTime () {
return this.$route.query.datetime
},
isMobile () {
return this.$q.platform.is.mobile
}
},
watch: {
......
......@@ -126,7 +126,8 @@
},
computed: {
...mapGetters({
user: 'auth/getUserState'
user: 'auth/getUserState',
isMobile: 'globalSettings/getIsMobile'
}),
cellContextMenuActions () {
const actions = {
......@@ -166,9 +167,6 @@
`<path d='M ${cell.width} 0 L 0 0 0 ${cell.height}' fill='none' stroke='gray' stroke-width='0.5'/>` +
`</pattern></defs><rect width='100%' height='100%' fill='url(%23smallGrid)' /></svg>")`
}
},
isMobile () {
return this.$q.platform.is.mobile
}
},
async mounted () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment