mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add details_edit_true on editCreationUserTable
This commit is contained in:
parent
9f6106d4ae
commit
16f373c120
@ -40,8 +40,8 @@
|
|||||||
<b-button
|
<b-button
|
||||||
variant="info"
|
variant="info"
|
||||||
size="md"
|
size="md"
|
||||||
:class="'details_' + row.detailsShowing"
|
:ref="'details_edit_' + row.detailsShowing"
|
||||||
@click="editCreationUserTable(row)"
|
@click="editCreationUserTable(row, row.detailsShowing)"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
>
|
>
|
||||||
<b-icon v-if="row.detailsShowing" icon="x" aria-label="Help"></b-icon>
|
<b-icon v-if="row.detailsShowing" icon="x" aria-label="Help"></b-icon>
|
||||||
@ -247,9 +247,9 @@ export default {
|
|||||||
}
|
}
|
||||||
if (details) {
|
if (details) {
|
||||||
row.toggleDetails()
|
row.toggleDetails()
|
||||||
this.showCreationFormular = null
|
// this.showCreationFormular = null
|
||||||
this.showConfirmRegisterMailFormular = null
|
// this.showConfirmRegisterMailFormular = null
|
||||||
this.showCreationTransactionListFormular = null
|
// this.showCreationTransactionListFormular = null
|
||||||
}
|
}
|
||||||
if (!details) {
|
if (!details) {
|
||||||
row.toggleDetails()
|
row.toggleDetails()
|
||||||
@ -269,9 +269,9 @@ export default {
|
|||||||
}
|
}
|
||||||
if (details) {
|
if (details) {
|
||||||
row.toggleDetails()
|
row.toggleDetails()
|
||||||
this.showCreationFormular = null
|
// this.showCreationFormular = null
|
||||||
this.showConfirmRegisterMailFormular = null
|
// this.showConfirmRegisterMailFormular = null
|
||||||
this.showCreationTransactionListFormular = null
|
// this.showCreationTransactionListFormular = null
|
||||||
}
|
}
|
||||||
if (!details) {
|
if (!details) {
|
||||||
row.toggleDetails()
|
row.toggleDetails()
|
||||||
@ -290,9 +290,9 @@ export default {
|
|||||||
}
|
}
|
||||||
if (details) {
|
if (details) {
|
||||||
row.toggleDetails()
|
row.toggleDetails()
|
||||||
this.showCreationFormular = null
|
// this.showCreationFormular = null
|
||||||
this.showConfirmRegisterMailFormular = null
|
// this.showConfirmRegisterMailFormular = null
|
||||||
this.showCreationTransactionListFormular = null
|
// this.showCreationTransactionListFormular = null
|
||||||
}
|
}
|
||||||
if (!details) {
|
if (!details) {
|
||||||
row.toggleDetails()
|
row.toggleDetails()
|
||||||
@ -364,13 +364,30 @@ export default {
|
|||||||
this.$toasted.error(error.message)
|
this.$toasted.error(error.message)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
editCreationUserTable(row, rowItem) {
|
editCreationUserTable(row, details) {
|
||||||
if (!row.detailsShowing) {
|
if (
|
||||||
this.creationUserData = rowItem
|
this.showConfirmRegisterMailFormular === true ||
|
||||||
} else {
|
this.showCreationTransactionListFormular === true
|
||||||
this.creationUserData = {}
|
) {
|
||||||
|
this.showCreationFormular = true
|
||||||
|
this.showConfirmRegisterMailFormular = false
|
||||||
|
this.showCreationTransactionListFormular = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (details) {
|
||||||
|
row.toggleDetails()
|
||||||
|
// this.showCreationFormular = null
|
||||||
|
// this.showConfirmRegisterMailFormular = null
|
||||||
|
// this.showCreationTransactionListFormular = null
|
||||||
|
}
|
||||||
|
if (!details) {
|
||||||
|
row.toggleDetails()
|
||||||
|
this.showCreationFormular = true
|
||||||
|
this.creationUserData = row.item
|
||||||
|
if (this.$refs.details_edit_true !== undefined) {
|
||||||
|
this.$refs.details_edit_true.click()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
row.toggleDetails()
|
|
||||||
},
|
},
|
||||||
updateCreationData(data) {
|
updateCreationData(data) {
|
||||||
this.creationUserData.amount = data.amount
|
this.creationUserData.amount = data.amount
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user