Skip to content

Commit

Permalink
feat(List View sort): use Autocomplete instead of Select for fields s…
Browse files Browse the repository at this point in the history
…election
  • Loading branch information
vinyselopal committed May 23, 2024
1 parent 32c1183 commit 947aa94
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/src/components/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
</Button>
</template>
<template #body-main>
<div class="flex p-1">
<div class="flex p-2">
<div>
<FormControl
type="select"
type="autocomplete"
:options="sortFieldsOption.data"
v-model="currentSortStatus.field"
label="Fields"
>
</FormControl>
</div>
<div class="ml-1">
<div class="ml-2">
<FormControl
type="select"
:options="sortOrderOption"
Expand Down Expand Up @@ -392,7 +392,8 @@ const handleRefresh = (event) => {
watch(
() => currentSortStatus.value,
(newValue) => {
listOptions.value.order_by = `\`tab${props.doctype}\`.${newValue.field} ${newValue.order}`
console.log("newValue", newValue)
listOptions.value.order_by = `\`tab${props.doctype}\`.${newValue.field.value} ${newValue.order}`
},
{ deep: true }
)
Expand Down

0 comments on commit 947aa94

Please sign in to comment.