Commit 278d7adf authored by Luna Riegel's avatar Luna Riegel
Browse files

Use VCSExpansionPanel for object library

parent 24f01efd
......@@ -6,9 +6,8 @@
<span>Die Objektbibliothek.</span>
</template>
<template #default>
<v-expansion-panels v-for = "(subcats, categoryName) in objLib" :key="categoryName">
<v-expansion-panel >
<v-expansion-panel-title class="text-h5">{{ categoryName }}</v-expansion-panel-title>
<v-expansion-panels>
<VcsExpansionPanel v-for = "(subcats, categoryName) in objLib" :key="categoryName" :heading="categoryName">
<v-container v-for="(entries, subCategory) in subcats" :key = "subCategory" class=" py-1 px-1 border-b-md" expandable>
<v-col>
<VcsLabel class="mb-4 text-h2">{{subCategory}}</VcsLabel>
......@@ -29,7 +28,7 @@
</v-col>
<v-divider/>
</v-container>
</v-expansion-panel>
</VcsExpansionPanel>
</v-expansion-panels>
</template>
......@@ -113,7 +112,7 @@ import {
VcsTreeview,
VcsTreeviewTitle,
} from '@vcmap/ui';
import {VCard, VCol, VContainer, VDialog, VForm, VRow, VSheet, VSwitch,} from 'vuetify/components';
import {VCard, VCol, VContainer, VDialog, VForm, VRow, VSheet, VSwitch, VExpansionPanels} from 'vuetify/components';
import {computed, inject, onMounted, ref} from 'vue';
import {name} from '../package.json';
import * as THREE from 'three';
......@@ -403,6 +402,7 @@ function uploadModel() {
VContainer,
VRow,
VCol,
VExpansionPanels,
},
setup() {
app = inject('vcsApp');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment