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