mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
show details of a user only once in the table. close open details automatically
This commit is contained in:
parent
6e9b65b6e0
commit
a46d1acce7
@ -40,7 +40,8 @@
|
||||
<b-button
|
||||
variant="info"
|
||||
size="md"
|
||||
@click="editCreationUserTable(row, row.item)"
|
||||
:class="'details_' + row.detailsShowing"
|
||||
@click="editCreationUserTable(row)"
|
||||
class="mr-2"
|
||||
>
|
||||
<b-icon v-if="row.detailsShowing" icon="x" aria-label="Help"></b-icon>
|
||||
@ -49,7 +50,13 @@
|
||||
</template>
|
||||
|
||||
<template #cell(show_details)="row">
|
||||
<b-button variant="info" size="md" @click="row.toggleDetails" class="mr-2">
|
||||
<b-button
|
||||
variant="info"
|
||||
size="md"
|
||||
:ref="'showing_detals_' + row.detailsShowing"
|
||||
@click="rowDetailsToogle(row, row.item)"
|
||||
class="mr-2"
|
||||
>
|
||||
<b-icon v-if="row.detailsShowing" icon="eye-slash-fill" aria-label="Help"></b-icon>
|
||||
<b-icon v-else icon="eye-fill" aria-label="Help"></b-icon>
|
||||
</b-button>
|
||||
@ -181,6 +188,12 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
rowDetailsToogle(row) {
|
||||
if (this.$refs.showing_detals_true) {
|
||||
this.$refs.showing_detals_true.click()
|
||||
}
|
||||
row.toggleDetails()
|
||||
},
|
||||
overlayShow(bookmarkType, item) {
|
||||
this.overlay = true
|
||||
this.overlayBookmarkType = bookmarkType
|
||||
@ -244,10 +257,6 @@ export default {
|
||||
})
|
||||
},
|
||||
editCreationUserTable(row, rowItem) {
|
||||
this.currentItems.forEach(item => {
|
||||
this.$set(item, '_showDetails', false)
|
||||
})
|
||||
|
||||
if (!row.detailsShowing) {
|
||||
this.creationUserData = rowItem
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user