diff --git a/components/EntityShow.vue b/components/EntityShow.vue
index dc3dec8..8b1f1fb 100644
--- a/components/EntityShow.vue
+++ b/components/EntityShow.vue
@@ -158,6 +158,22 @@ const onTabChange = (index) => {
v-else-if="!props.inModal && platform === 'mobile'"
:ui="{center: 'flex items-stretch gap-1.5 min-w-0'}"
>
+
diff --git a/composables/useEntities.ts b/composables/useEntities.ts
index c9489c0..d0f1558 100644
--- a/composables/useEntities.ts
+++ b/composables/useEntities.ts
@@ -14,7 +14,7 @@ export const useEntities = (
const select = async (
select: string = "*",
sortColumn: string | null = null,
- ascending: boolean = false,
+ ascending: boolean = true,
noArchivedFiltering: boolean = false
) => {
@@ -23,7 +23,7 @@ export const useEntities = (
params: {
select,
sort: sortColumn || undefined,
- asc: ascending
+ asc: ascending ? "true" : "false"
}
})
@@ -36,24 +36,6 @@ export const useEntities = (
return data
}
- const selectSpecial = async (
- select: string = "*",
- sortColumn: string | null = null,
- ascending: boolean = false,
- ) => {
-
- const res = await useNuxtApp().$api(`/api/resource-special/${relation}`, {
- method: "GET",
- params: {
- select,
- sort: sortColumn || undefined,
- asc: ascending
- }
- })
-
- return res
- }
-
const selectSingle = async (
idToEq: string | number,
select: string = "*",
@@ -61,7 +43,7 @@ export const useEntities = (
) => {
if (!idToEq) return null
- const res = await useNuxtApp().$api(withInformation ? `/api/resource/${relation}/${idToEq}/${withInformation}` : `/api/resource/${relation}/${idToEq}`, {
+ const res = await useNuxtApp().$api(`/api/resource/${relation}/${idToEq}/${withInformation}`, {
method: "GET",
params: { select }
})
@@ -131,7 +113,7 @@ export const useEntities = (
return res
}
- return {select, create, update, archive, selectSingle, selectSpecial}
+ return {select, create, update, archive, selectSingle}
}
diff --git a/pages/index.vue b/pages/index.vue
index 3e4a2e5..85ec9d0 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,5 +1,5 @@
-
+