tethys.backend/resources/js/Components/AsideMenuList.vue
Arno Kaimbacher f403c3109f - add methods for releasing datasets from submitter
- npm updates
- side menu with child items
- flash messages via HttpContext response (extended via macro)
2023-06-27 18:23:18 +02:00

30 lines
601 B
Vue

<script setup lang="ts">
import AsideMenuItem from '@/Components/AsideMenuItem.vue';
defineProps({
isDropdownList: Boolean,
menu: {
type: Object,
default: () => {},
},
});
const emit = defineEmits(['menu-click']);
const menuClick = (event, item) => {
emit('menu-click', event, item);
};
</script>
<template>
<ul>
<AsideMenuItem
v-for="(item, index) in menu"
:key="index"
v-bind:item="item"
:is-dropdown-list="item.children?.length > 0"
@menu-click="menuClick"
/>
</ul>
</template>