1
0
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:
Amir Raminfar
2023-07-31 10:06:49 -07:00
parent 166e547f05
commit 8e21cbd51c

View File

@@ -68,7 +68,7 @@ const { containers, perPage = 15 } = defineProps<{
perPage?: number;
}>();
const sortField: Ref<keyof typeof headers> = ref("created");
const direction = ref<1 | -1>(1);
const direction = ref<1 | -1>(-1);
const sortedContainers = computedWithControl(
() => [containers.length, sortField.value, direction.value],
() => {