mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
fix: changes default direction to desc
This commit is contained in:
@@ -68,7 +68,7 @@ const { containers, perPage = 15 } = defineProps<{
|
|||||||
perPage?: number;
|
perPage?: number;
|
||||||
}>();
|
}>();
|
||||||
const sortField: Ref<keyof typeof headers> = ref("created");
|
const sortField: Ref<keyof typeof headers> = ref("created");
|
||||||
const direction = ref<1 | -1>(1);
|
const direction = ref<1 | -1>(-1);
|
||||||
const sortedContainers = computedWithControl(
|
const sortedContainers = computedWithControl(
|
||||||
() => [containers.length, sortField.value, direction.value],
|
() => [containers.length, sortField.value, direction.value],
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user