finished ##257

This commit is contained in:
Tim Gröger 2020-05-17 13:46:34 +02:00
parent 6dac646f97
commit 82610a011b
1 changed files with 38 additions and 9 deletions

View File

@ -132,10 +132,39 @@
</v-combobox>
</v-col>
<v-col v-bind:class="{ fulllineText: isFulllineText }">
<v-text-field outlined :value="computeStatus" readonly label="Mitgliedsstatus"/>
<v-text-field
outlined
:value="computeStatus"
readonly
label="Mitgliedsstatus"
/>
</v-col>
<v-col v-bind:class="{ fulllineText: isFulllineText }">
<v-text-field outlined :value="user.voting ? 'ja' : 'nein'" readonly label="Stimmrecht" />
<v-text-field
outlined
:value="user.voting ? 'ja' : 'nein'"
readonly
label="Stimmrecht"
/>
</v-col>
</v-row>
<v-row>
<v-col v-bind:class="{ fulllineText: isFulllineText }">
<v-combobox
chips
outlined
multiple
label="Arbeitsgruppen"
readonly
v-model="user.workgroups"
item-value="id"
item-text="name"
append-icon
>
<template v-slot:selection="data">
<v-chip>{{data.item.name}}</v-chip>
</template>
</v-combobox>
</v-col>
</v-row>
</v-card-text>
@ -186,9 +215,8 @@ export default {
},
mounted() {
this.$nextTick(function() {
window.addEventListener('resize', this.getWindowWidth);
window.addEventListener('resize', this.getWindowWidth)
this.getWindowWidth()
})
},
methods: {
@ -197,7 +225,7 @@ export default {
getStatus: 'user/getStatus'
}),
getWindowWidth() {
this.isFulllineText = document.documentElement.clientWidth <= 600;
this.isFulllineText = document.documentElement.clientWidth <= 600
},
save() {
let user = {}
@ -251,4 +279,5 @@ export default {
<style scoped>
.fulllineText {
flex-basis: unset;
}</style>
}
</style>