This commit is contained in:
vadim committed 2026-09-28 15:43:50 +03:00
1 parent baf0fa186e
commit 6f651eeaeb
5 files changed
+68 -5

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
<script setup lang="ts">
import { useStatusStore } from '@/stores/status.ts'
import { ref } from 'vue'
interface Props {
status?: string | null
}
const { status } = defineProps<Props>()
const emit = defineEmits<{ changed: [value: string] }>()
const statusStore = useStatusStore()
const selected = ref(status)
const onUpdate = (val: unknown) => emit('changed', val as string)
</script>
<template>
<v-btn-toggle
v-model="selected"
class="border-opacity-25"
border
divided
size="default"
density="compact"
variant="text"
@update:model-value="onUpdate"
>
<v-btn
slim
v-for="status in statusStore.statuses"
:color="status.color"
:value="status.alias"
:key="status.alias"
rounded="0"
>
<div class="text-default">{{ status.name }}</div>
</v-btn>
</v-btn-toggle>
</template>
<style scoped lang="scss"></style>