Switching between two form additions is clean

This commit is contained in:
ogerly 2021-12-19 13:03:34 +01:00
parent bb703f9fa8
commit d13b341bae

View File

@ -213,6 +213,10 @@ export default {
}, },
methods: { methods: {
rowDetailsToogle(row, details) { rowDetailsToogle(row, details) {
if (this.showCreationFormular === false) {
this.showCreationFormular = true
return
}
if (details) { if (details) {
row.toggleDetails() row.toggleDetails()
this.showCreationFormular = null this.showCreationFormular = null
@ -233,11 +237,10 @@ export default {
} }
if (details) { if (details) {
row.toggleDetails() row.toggleDetails()
this.showCreationFormular === null this.showCreationFormular = null
} }
if (!details) { if (!details) {
row.toggleDetails() row.toggleDetails()
this.showCreationFormular === false
if (this.$refs.showing_registermail_detals_true !== undefined) { if (this.$refs.showing_registermail_detals_true !== undefined) {
this.$refs.showing_registermail_detals_true.click() this.$refs.showing_registermail_detals_true.click()
} }