Skip to content
Snippets Groups Projects
Commit f97d3edc authored by Thilo Wischmeyer's avatar Thilo Wischmeyer Committed by Thilo Wischmeyer
Browse files

Expanded expansion-panels by default

Because of the way the model for the expansion-panels was changed, this is
quite ugly now. Maybe this just shouldn't be an expansion-panel if we want the
content to be visible anyway?
parent 7fd6194d
Branches
Tags
1 merge request!247Resolve "Update Vuetify"
......@@ -12,7 +12,10 @@
<v-icon>close</v-icon>
</v-btn>
</v-toolbar>
<v-expansion-panels v-model="expanded">
<v-expansion-panels
v-model="expanded"
multiple
>
<v-expansion-panel
v-for="(item, i) in typeItems"
:key="i"
......@@ -117,9 +120,10 @@ export default class SubmissionType extends Vue {
default: true
}) closeable!: boolean
expanded = this.reverse
? [this.expandedByDefault.Description, this.expandedByDefault.Solution]
: [this.expandedByDefault.Solution, this.expandedByDefault.Description]
expanded = [
...(this.expandedByDefault.Description ? [this.reverse ? 0 : 1] : []),
...(this.expandedByDefault.Solution ? [this.reverse ? 1 : 0] : [])
]
showSolutionComments = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment