-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
<template> | ||
<span class="fixed right-0 z-10 cursor-pointer space-x-2 text-base p-[6px]"> | ||
<Button size="small" severity="secondary" text outlined rounded class="text-xs" icon="pi pi-ban" label="Clear" @click="eventsStore.clear()"></Button> | ||
<InputSwitch v-model="settingsStore.lockOn" /><span class="text-xs">Lock-on</span> | ||
<Button size="small" severity="secondary" text outlined rounded class="text-xs" icon="pi pi-sliders-h" label="Settings" @click="settingsVisible=true"></Button> | ||
</span> | ||
<SettingsDialog v-model:visible="settingsVisible" @save="settingsVisible=false"/> | ||
</template> | ||
|
||
<script setup> | ||
import Button from 'primevue/button'; | ||
import InputSwitch from 'primevue/inputswitch'; | ||
import SettingsDialog from './SettingsDialog.vue'; | ||
import { useEventsStore } from '../stores/events'; | ||
import { useSettingsStore } from '../stores/settings'; | ||
import { ref } from 'vue'; | ||
const settingsVisible = ref(false); | ||
const eventsStore = useEventsStore(); | ||
const settingsStore = useSettingsStore(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters