Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix: Put checkboxes at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
MeisterSeSe committed Dec 18, 2023
1 parent 83e9508 commit 2327eaa
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions frontendVue3/src/components/FeatureModelTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-card variant="elevated" rounded class="pa-2">
<v-data-table
:loading="props.loading"
:headers="headers"
:headers="tableHeaders"
:items="filteredItems"
:items-per-page="itemsPerPage"
:search="search"
Expand Down Expand Up @@ -163,10 +163,19 @@
<template #item="{item}">
<tr @mouseenter="HandleMouseover(item.raw.id)"
@mouseleave="HandleMouseleave(item.raw.id)"

>
<td class="text-xs-left color-corner"
v-bind:class="{'purple': item.raw.active}"
v-if="isSelectable">
<v-checkbox

<td class="text-xs-left color-corner"
v-bind:class="{'purple': item.raw.active}">

v-model="selectedItems"
:value="item"
></v-checkbox>
</td>
<td >
<v-btn
variant="text"
color="primary"
Expand Down Expand Up @@ -244,13 +253,7 @@
>
</v-btn>
</td>
<td>
<v-checkbox
v-if="isSelectable"
v-model="selectedItems"
:value="item"
></v-checkbox>
</td>


</tr>

Expand Down Expand Up @@ -344,6 +347,12 @@ const headers = [
sortable: false,
},
];
const tableHeaders = props.isSelectable
? [
{ title: '', key: 'checkbox', sortable: false },
...headers,
]
: headers;
const search = ref('');
const createDialog = ref(false);
const checkLocalStorage = computed(() => {
Expand Down

0 comments on commit 2327eaa

Please sign in to comment.