update dbmData and Subscription so it is reactive

new save load scenes
This commit is contained in:
Adrian Zürcher
2025-06-19 19:30:28 +02:00
parent fd970b6d1f
commit 3e2b95c1c3
19 changed files with 761 additions and 188 deletions

View File

@@ -1,12 +1,12 @@
<template>
<div class="q-pa-md">
<q-table
v-if="props.rows.length > 0"
v-if="tableRows.length > 0"
style="height: 600px"
flat
bordered
:title="props.rows[0]?.path"
:rows="props.rows ?? []"
:rows="rows"
:columns="columns"
row-key="path"
virtual-scroll
@@ -17,13 +17,16 @@
<script setup lang="ts">
import type { QTableProps } from 'quasar';
import type { Subscribe } from 'src/models/Subscribe';
import type { Subs } from 'src/models/Subscribe';
import { computed } from 'vue';
// we generate lots of rows here
const props = defineProps<{
rows: Subscribe[];
rows: Subs;
}>();
const tableRows = computed(() => [...props.rows]);
const columns = [
{ name: 'path', label: 'Path', field: 'path', align: 'left' },
{