add default user signatures

This commit is contained in:
Alex Turchyn committed 2023-09-24 11:21:50 +03:00
1 parent 380f553a17
commit 5643094a7a
22 files changed
+337 -59

No files matched your search

@@ -76,7 +76,7 @@
</template>
<script>
import SignatureStep from './signature_step'
import { cropCanvasAndExportToPNG } from './crop_canvas'
import { IconReload, IconSignature, IconArrowsDiagonalMinimize2 } from '@tabler/icons-vue'
export default {
@@ -146,7 +146,6 @@ export default {
}
},
methods: {
cropCanvasAndExportToPNG: SignatureStep.methods.cropCanvasAndExportToPNG,
remove () {
this.$emit('update:model-value', '')
},
@@ -195,7 +194,7 @@ export default {
}
return new Promise((resolve) => {
this.cropCanvasAndExportToPNG(this.$refs.canvas).then(async (blob) => {
cropCanvasAndExportToPNG(this.$refs.canvas).then(async (blob) => {
const file = new File([blob], 'initials.png', { type: 'image/png' })
if (this.isDirectUpload) {