Commit 9fb2b4df authored by Luna Riegel's avatar Luna Riegel
Browse files

Use buttons for catalogue entry GUI

parent 36204e3b
...@@ -8,21 +8,22 @@ ...@@ -8,21 +8,22 @@
<template #default> <template #default>
<v-expansion-panels v-for = "(subcats, categoryName) in objLib" :key="categoryName"> <v-expansion-panels v-for = "(subcats, categoryName) in objLib" :key="categoryName">
<v-expansion-panel > <v-expansion-panel >
<v-expansion-panel-title>{{ categoryName }}</v-expansion-panel-title> <v-expansion-panel-title class="text-h5">{{ categoryName }}</v-expansion-panel-title>
<v-container v-for="(entries, subCategory) in subcats" :key = "subCategory" class=" py-1 px-1 border-b-md" expandable> <v-container v-for="(entries, subCategory) in subcats" :key = "subCategory" class=" py-1 px-1 border-b-md" expandable>
<v-col> <v-col>
<VcsLabel class="mb-4">{{subCategory}}</VcsLabel> <VcsLabel class="mb-4 text-h2">{{subCategory}}</VcsLabel>
<v-list> <v-list>
<v-row> <v-row>
<v-list-item <vcs-button
v-for="entry in entries" v-for="entry in entries"
:key="entry.title" :key="entry.title"
class="d-flex align-center my-0 mx-1 border"
@click="fetchCatalogueModel(entry.model)" @click="fetchCatalogueModel(entry.model)"
style ="cursor: pointer;" class="p-0 mx-1 my-0 border gc-2"
style="width: auto; height: auto; margin-left: 1rem; margin-bottom: 1px;"
variant="filled"
> >
<img :src="entry.icon" :alt="entry.icon"/> <img :src="entry.icon" :alt="entry.icon" style="display: block; max-width: 100%; max-height: 100%;" />
</v-list-item> </vcs-button>
</v-row> </v-row>
</v-list> </v-list>
</v-col> </v-col>
...@@ -107,7 +108,7 @@ import { ...@@ -107,7 +108,7 @@ import {
VcsFormButton, VcsFormButton,
VcsFormSection, VcsFormSection,
VcsLabel, VcsLabel,
VcsList, VcsList, VcsListItemComponent,
VcsTextField, VcsTextField,
VcsTreeview, VcsTreeview,
VcsTreeviewTitle, VcsTreeviewTitle,
...@@ -385,6 +386,7 @@ function uploadModel() { ...@@ -385,6 +386,7 @@ function uploadModel() {
export default { export default {
name: 'objectList', name: 'objectList',
components: { components: {
VcsListItemComponent,
VcsButton, VcsButton,
VcsLabel, VcsLabel,
VcsExpansionPanel, VcsExpansionPanel,
......
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