{{columnName}}
diff --git a/components/EntityList.vue b/components/EntityList.vue
index aa672f5..7eb08d2 100644
--- a/components/EntityList.vue
+++ b/components/EntityList.vue
@@ -108,7 +108,7 @@ const filteredRows = computed(() => {
:label="`+ ${dataType.labelSingle}`"
variant="outline"
v-if="platform === 'mobile'"
- @click="router.push(`/mobile/standardEntity/${type}/create`)"
+ @click="router.push(`/standardEntity/${type}/create`)"
/>
diff --git a/components/HistoryDisplay.vue b/components/HistoryDisplay.vue
index 9128288..cf60788 100644
--- a/components/HistoryDisplay.vue
+++ b/components/HistoryDisplay.vue
@@ -21,9 +21,12 @@ const showAddHistoryItemModal = ref(false)
const colorMode = useColorMode()
const items = ref([])
+const platform = ref("default")
const setup = async () => {
+ if(await useCapacitor().getIsPhone()) platform.value = "mobile"
+
if(props.type && props.elementId){
items.value = (await supabase.from("historyitems").select().eq(props.type,props.elementId).order("created_at",{ascending: true})).data || []
} else {
@@ -102,10 +105,16 @@ const renderText = (text) => {
-
+
- Eintrag hinzufügen
+
+
+ Eintrag hinzufügen
+
+
+
+ class="w-full my-1"
+ to="/standardEntity/absencerequests"
+ >
Abwesenheiten
+ class="w-full my-1"
+ to="/standardEntity/customers"
+ >
Kunden
+ class="w-full my-1"
+ to="/standardEntity/vendors"
+ >
Lieferanten
+ class="w-full my-1"
+ to="/standardEntity/plants"
+ >
Objekte
diff --git a/pages/standardEntity/[type]/[[mode]]/[[id]].vue b/pages/standardEntity/[type]/[[mode]]/[[id]].vue
index 2e81897..34673e3 100644
--- a/pages/standardEntity/[type]/[[mode]]/[[id]].vue
+++ b/pages/standardEntity/[type]/[[mode]]/[[id]].vue
@@ -70,6 +70,7 @@ setupPage()
:type="route.params.type"
:item="item"
:mode="mode"
+ :platform="platform"
/>
{
let profiles = (await supabase.from("profiles").select("*, role(*)")).data
let activeProfileConnection = profileconnections.find(i => i.active)
if(activeProfileConnection) {
- toast.add({title: 'Aktives Profil ausgewählt'})
+ if(!await useCapacitor().getIsPhone()) {
+ toast.add({title: 'Aktives Profil ausgewählt'})
+ }
+
console.log("Active Profile selected")
activeProfile.value = profiles.find(i => i.id === activeProfileConnection.profile_id)
currentTenant.value = activeProfile.value.tenant