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: {
@ -196,9 +224,9 @@ export default {
saveConfig: 'user/saveConfig',
getStatus: 'user/getStatus'
}),
getWindowWidth() {
this.isFulllineText = document.documentElement.clientWidth <= 600;
},
getWindowWidth() {
this.isFulllineText = document.documentElement.clientWidth <= 600
},
save() {
let user = {}
if (this.firstname) user.firstname = this.firstname
@ -249,6 +277,7 @@ export default {
</script>
<style scoped>
.fulllineText{
.fulllineText {
flex-basis: unset;
}</style>
}
</style>