mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-22 04:51:13 +08:00
Implement toggle for zebra printers searching feature [SCI-7242] (#4470)
This commit is contained in:
parent
691b9abac7
commit
0e8ad6abf1
3 changed files with 8 additions and 2 deletions
|
@ -17,6 +17,7 @@ function initPrintModalComponent() {
|
|||
return {
|
||||
showModal: false,
|
||||
row_ids: [],
|
||||
zebraEnabled: container.data('zebra-enabled'),
|
||||
urls: {
|
||||
print: container.data('print-url'),
|
||||
zebraProgress: container.data('zebra-progress-url'),
|
||||
|
|
|
@ -85,7 +85,8 @@
|
|||
props: {
|
||||
showModal: Boolean,
|
||||
row_ids: Array,
|
||||
urls: Object
|
||||
urls: Object,
|
||||
zebraEnabled: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -114,7 +115,9 @@
|
|||
this.$emit('close');
|
||||
});
|
||||
|
||||
this.initZebraPrinter();
|
||||
if (this.zebraEnabled) {
|
||||
this.initZebraPrinter();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
templates_dropdown() {
|
||||
|
|
|
@ -91,11 +91,13 @@
|
|||
data-label-templates-url="<%= label_templates_path(format: :json) %>"
|
||||
data-rows-url="<%= rows_to_print_repository_repository_rows_path(repository_id: @repository) %>"
|
||||
data-fluics-info-url="<%= Constants::SCINOTE_FLUICS_URL %>"
|
||||
data-zebra-enabled="<%= Rails.configuration.x.zebra_print_enabled %>"
|
||||
>
|
||||
<print-modal-container
|
||||
:show-modal = "showModal"
|
||||
:row_ids = "row_ids"
|
||||
:urls = "urls"
|
||||
:zebra-enabled = "zebraEnabled"
|
||||
@close="closeModal"
|
||||
></print-modal-container>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue