fix reset values on deleting me fields

pull/150/merge^2
iozeey 2 years ago
parent f6e86093e7
commit cf628a8ea5

@ -590,27 +590,36 @@ export default {
this.save()
},
removeField () {
const templateValue = this.template.values[this.field.uuid]
switch (this.field.type) {
case 'my_signature':
this.showMySignature = false
this.myLocalSignatureValue = ''
if (this.myLocalSignatureValue === templateValue) {
this.showMySignature = false
this.myLocalSignatureValue = ''
}
console.log('switch signature portion')
break
case 'my_initials':
this.showMyInitials = false
this.myLocalInitialsValue = ''
if (this.myLocalInitialsValue === templateValue) {
this.showMyInitials = false
this.myLocalInitialsValue = ''
}
console.log('switch initials portion')
break
case 'my_date':
this.showMyDate = false
this.myLocalDateValue = ''
if (this.myLocalDateValue === templateValue) {
this.showMyDate = false
this.myLocalDateValue = ''
}
console.log('switch my_date portion')
break
case 'my_text':
this.myLocalText = ''
if (this.myLocalText === templateValue) {
this.myLocalText = ''
}
break
default:
console.log('switch default portion')

Loading…
Cancel
Save