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; return window.$gz.form;
}, },
save() { save() {
console.log("ISEMPTY", this.$refs.sigCtrl.isEmpty()); if (!this.$refs.sigCtrl.isEmpty()) {
let svg = this.$refs.sigCtrl.save("image/svg+xml"); let svg = this.$refs.sigCtrl.save("image/svg+xml");
if (this.$refs.sigCtrl.isEmpty()) { this.setSig(svg);
svg = null; 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; this.openDialog = false;
}, },
setSig(theSig) { setSig(theSig) {