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