- small adaptions for AsideMenuItem.vue, AsideMenuLayer.vue
All checks were successful
CI Pipeline / japa-tests (push) Successful in 50s

- new routes editor.dataset.list and editor.dataset.update
- fir functionalities for editor role, suche as listing and receiving released datasets
- npm updates
This commit is contained in:
Kaimbacher 2023-11-30 13:40:32 +01:00
parent c1e056b9fc
commit 6fef581dd0
11 changed files with 550 additions and 84 deletions

View file

@ -37,18 +37,13 @@ const styleService = StyleService();
const hasColor = computed(() => props.item && props.item.color);
const isDropdownOpen = ref(false);
// const isDropdownOpen = ref(false);
const isChildSelected = computed(() => {
if (props.item.children && props.item.children.length > 0) {
return children.value.some(childItem => stardust.isCurrent(childItem.route));
}
return false;
});
// const value = computed({
// get: () => props.modelValue,
// set: (value) => emit('update:modelValue', value),
// const isChildSelected = computed(() => {
// if (props.item.children && props.item.children.length > 0) {
// return children.value.some(childItem => stardust.isCurrent(childItem.route));
// }
// return false;
// });
@ -154,7 +149,7 @@ const hasRoles = computed(() => {
<!-- <li v-for="( child, index ) in children " :key="index">
<AsideMenuItem :item="child" :key="index"> </AsideMenuItem>
</li> -->
<AsideMenuItem v-for="(childItem, index) in props.item.children" :key="index" :item="childItem" />
<AsideMenuItem v-for="(childItem, index) in children" :key="index" :item="childItem" />
</ul>
</div>
<!-- <AsideMenuList v-if="hasChildren" :items="item.children"
@ -171,17 +166,18 @@ const hasRoles = computed(() => {
cursor: pointer;
}
/* .menu-item-icon {
font-size: 1.5rem;
margin-right: 10px;
.menu-item-icon {
font-size: 2.5rem;
/* margin-right: 10px; */
}
.menu-item-label {
/* .menu-item-label {
font-size: 1.2rem;
font-weight: bold;
}
} */
.menu-item-dropdown {
margin-left: 10px;
} */
/* margin-left: 10px; */
padding-left: 0.75rem;
}
</style>