Fix zebra printer CSP issue [SCI-8859] (#5806)

This commit is contained in:
Soufiane 2023-07-21 16:54:57 +02:00 committed by GitHub
parent 9d336423ab
commit 5a44400fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,12 +130,11 @@
})
$(this.$refs.modal).on('hidden.bs.modal', () => {
if (this.zebraEnabled) {
this.zebraPrinters = null;
}
this.$emit('close');
});
if (this.zebraEnabled) {
this.initZebraPrinter();
}
},
computed: {
availableTemplates() {
@ -167,6 +166,9 @@
watch: {
showModal() {
if (this.showModal) {
if (this.zebraEnabled) {
this.initZebraPrinter();
}
$(this.$refs.modal).modal('show');
this.validateTemplate();
}