keep alive prev instance dialog

This commit is contained in:
pa
2026-01-22 16:10:18 +09:00
parent a1f4a22609
commit ab4dde0836
5 changed files with 40 additions and 12 deletions

View File

@@ -28,8 +28,10 @@
</template>
<script setup>
import { DialogHeader, DialogTitle } from '@/components/ui/dialog';
defineOptions({ name: 'PreviousInstancesUserDialog' });
import { computed, ref, watch } from 'vue';
import { DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { InputGroupField } from '@/components/ui/input-group';
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';
@@ -57,7 +59,6 @@
const modalStore = useModalStore();
const loading = ref(false);
const rawRows = ref([]);
const search = ref('');
const pageSizes = [10, 25, 50, 100];
const pageSize = ref(10);
const tableStyle = { maxHeight: '400px' };
@@ -70,6 +71,7 @@
const { stringComparer } = storeToRefs(useSearchStore());
const vrcxStore = useVrcxStore();
const { t } = useI18n();
const search = ref('');
const displayRows = computed(() => {
const q = String(search.value ?? '')
@@ -105,6 +107,9 @@
initialPagination: {
pageIndex: 0,
pageSize: pageSize.value
},
tableOptions: {
autoResetPageIndex: false
}
});