From c12c75aba9b06827dcdd6f28f4cf7afc3949e421 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 15 Dec 2021 23:50:33 +0000 Subject: [PATCH] --- .../src/components/work-order-signature.vue | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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) {