This commit is contained in:
2021-12-15 23:50:33 +00:00
parent 2bf9b40cc9
commit c12c75aba9

View File

@@ -200,17 +200,15 @@ export default {
return window.$gz.form;
},
save() {
console.log("ISEMPTY", this.$refs.sigCtrl.isEmpty());
let svg = this.$refs.sigCtrl.save("image/svg+xml");
if (this.$refs.sigCtrl.isEmpty()) {
svg = null;
if (!this.$refs.sigCtrl.isEmpty()) {
let svg = this.$refs.sigCtrl.save("image/svg+xml");
this.setSig(svg);
this.setCaptured(window.$gz.locale.nowUTC8601String());
this.setName(this.tempName);
this.value.isDirty = true;
this.pvm.formState.dirty = true;
this.$emit("change");
}
this.setSig(svg);
this.setCaptured(window.$gz.locale.nowUTC8601String());
this.setName(this.tempName);
this.value.isDirty = true;
this.pvm.formState.dirty = true;
this.$emit("change");
this.openDialog = false;
},
setSig(theSig) {