B8e23 submission list UI fixes (#426)

* fix password reset bug

* fix vSwitch component, column toggle, table ordering
This commit is contained in:
Favour Olayinka
2024-05-29 10:00:27 +01:00
committed by GitHub
parent 289bdf93e0
commit f9dacd0a74
4 changed files with 14 additions and 10 deletions

View File

@@ -41,7 +41,7 @@
</tr>
</thead>
<tbody
v-if="data.length > 0"
v-if="formData.length > 0"
class="n-table-body bg-white dark:bg-notion-dark-light"
>
<tr
@@ -59,7 +59,7 @@
</td>
</tr>
<tr
v-for="(row, index) in data"
v-for="(row, index) in formData"
:key="row.id"
class="n-table-row"
:class="{ first: index === 0 }"
@@ -224,6 +224,12 @@ export default {
},
},
computed: {
formData(){
return this.data.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
}
},
mounted() {
this.internalColumns = clonedeep(this.columns)
const parent = this.scrollParent ?? document.getElementById("table-page")
@@ -235,7 +241,6 @@ export default {
this.onStructureChange()
this.handleScroll()
},
beforeUnmount() {
const parent = this.scrollParent ?? document.getElementById("table-page")
if (parent) {