mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2025-12-06 16:42:59 +00:00
20 lines
464 B
Vue
20 lines
464 B
Vue
<template>
|
|
<span>Eingabemodus: </span>
|
|
<BulmaButton
|
|
v-bind="$attrs"
|
|
:icon="
|
|
'fa-solid fa-' +
|
|
(store.is_touch_device ? 'hand-pointer' : 'arrow-pointer')
|
|
"
|
|
:text="store.is_touch_device ? 'Touch' : 'Desktop'"
|
|
@click.left="store.toggle_touch_device"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { advent22Store } from "@/lib/store";
|
|
|
|
import BulmaButton from "./bulma/Button.vue";
|
|
|
|
const store = advent22Store();
|
|
</script>
|