diff --git a/app/javascript/vue/repository_print_modal/container.vue b/app/javascript/vue/repository_print_modal/container.vue index af6222d58..a058c1c25 100644 --- a/app/javascript/vue/repository_print_modal/container.vue +++ b/app/javascript/vue/repository_print_modal/container.vue @@ -154,7 +154,7 @@ }, submitPrint() { if (this.selectedPrinter.attributes.type_of === 'zebra') { - zebraPrinters.print( + this.zebraPrinters.print( this.urls.zebraProgress, '.label-printing-progress-modal', '#modal-print-repository-row-label', @@ -179,7 +179,7 @@ initZebraPrinter() { this.zebraPrinters = zebraPrint.init($('#LabelPrinterSelector'), { clearSelectorOnFirstDevice: false, - appendDevice: function(device) { + appendDevice: (device) => { this.printers.push({ id: `zebra${this.printers.length}`, attributes: { diff --git a/app/services/label_templates_preview_service.rb b/app/services/label_templates_preview_service.rb index 83fc2fcf8..f253eff78 100644 --- a/app/services/label_templates_preview_service.rb +++ b/app/services/label_templates_preview_service.rb @@ -39,6 +39,6 @@ class LabelTemplatesPreviewService private def sanitize_zpl_code(zpl_code) - zpl_code.gsub!('_', '_5F') + zpl_code.gsub('_', '_5F') end end diff --git a/app/views/users/settings/account/addons/index.html.erb b/app/views/users/settings/account/addons/index.html.erb index 012e11079..38d0f67e5 100644 --- a/app/views/users/settings/account/addons/index.html.erb +++ b/app/views/users/settings/account/addons/index.html.erb @@ -35,7 +35,7 @@