This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user