advent22/ui/src/components/TouchButton.vue

21 lines
464 B
Vue
Raw Normal View History

<template>
2023-11-05 21:57:50 +00:00
<span>Eingabemodus:&nbsp;</span>
<BulmaButton
2023-11-05 21:57:50 +00:00
v-bind="$attrs"
:icon="
'fa-solid fa-' +
(store.is_touch_device ? 'hand-pointer' : 'arrow-pointer')
"
2023-11-05 21:57:50 +00:00
:text="store.is_touch_device ? 'Touch' : 'Desktop'"
@click.left="store.toggle_touch_device"
/>
</template>
<script setup lang="ts">
2024-08-23 16:38:04 +00:00
import { advent22Store } from "@/lib/store";
import BulmaButton from "./bulma/Button.vue";
const store = advent22Store();
</script>