diff --git a/ayanova/src/components/work-order-signature.vue b/ayanova/src/components/work-order-signature.vue index 337f1964..07f648a7 100644 --- a/ayanova/src/components/work-order-signature.vue +++ b/ayanova/src/components/work-order-signature.vue @@ -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) {