redone admin
added branches
This commit is contained in:
@@ -229,6 +229,11 @@ const links = computed(() => {
|
||||
to: "/standardEntity/memberrelations",
|
||||
icon: "i-heroicons-identification"
|
||||
} : null,
|
||||
featureEnabled("branches") ? {
|
||||
label: "Niederlassungen",
|
||||
to: "/standardEntity/branches",
|
||||
icon: "i-heroicons-building-office-2"
|
||||
} : null,
|
||||
featureEnabled("staffProfiles") ? {
|
||||
label: "Mitarbeiter",
|
||||
to: "/staff/profiles",
|
||||
@@ -282,11 +287,6 @@ const links = computed(() => {
|
||||
to: "/settings/tenant",
|
||||
icon: "i-heroicons-building-office",
|
||||
} : null,
|
||||
isAdmin.value ? {
|
||||
label: "Administration",
|
||||
to: "/settings/admin",
|
||||
icon: "i-heroicons-shield-check",
|
||||
} : null,
|
||||
featureEnabled("export") ? {
|
||||
label: "Export",
|
||||
to: "/export",
|
||||
@@ -294,6 +294,19 @@ const links = computed(() => {
|
||||
} : null,
|
||||
]
|
||||
|
||||
const administrationChildren = isAdmin.value ? [
|
||||
{
|
||||
label: "Benutzer",
|
||||
to: "/administration/users",
|
||||
icon: "i-heroicons-users",
|
||||
},
|
||||
{
|
||||
label: "Tenants",
|
||||
to: "/administration/tenants",
|
||||
icon: "i-heroicons-building-office-2",
|
||||
},
|
||||
] : []
|
||||
|
||||
const visibleOrganisationChildren = visibleItems(organisationChildren)
|
||||
const visibleDocumentChildren = visibleItems(documentChildren)
|
||||
const visibleCommunicationChildren = visibleItems(communicationChildren)
|
||||
@@ -303,6 +316,7 @@ const links = computed(() => {
|
||||
const visibleInventoryChildren = visibleItems(inventoryChildren)
|
||||
const visibleMasterDataChildren = visibleItems(masterDataChildren)
|
||||
const visibleSettingsChildren = visibleItems(settingsChildren)
|
||||
const visibleAdministrationChildren = visibleItems(administrationChildren)
|
||||
|
||||
return visibleItems([
|
||||
...(auth.profile?.pinned_on_navigation || []).map(pin => {
|
||||
@@ -397,7 +411,12 @@ const links = computed(() => {
|
||||
icon: "i-heroicons-clipboard-document",
|
||||
children: visibleMasterDataChildren
|
||||
}] : []),
|
||||
|
||||
...(visibleAdministrationChildren.length > 0 ? [{
|
||||
label: "Administration",
|
||||
defaultOpen: false,
|
||||
icon: "i-heroicons-shield-check",
|
||||
children: visibleAdministrationChildren
|
||||
}] : []),
|
||||
|
||||
...(visibleSettingsChildren.length > 0 ? [{
|
||||
label: "Einstellungen",
|
||||
|
||||
13
frontend/components/columnRenderings/branch.vue
Normal file
13
frontend/components/columnRenderings/branch.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
row: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: {}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span>{{ props.row.branch?.name || '' }}</span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user