Disable print modal button for offline printer statuses [SCI-7276] (#4493)

* Disable print modal button for offline printer statuses [SCI-7276]

* Disable print modal button for offline printer statuses [SCI-7276]
This commit is contained in:
ajugo 2022-10-06 11:19:51 +02:00 committed by GitHub
parent bd535dc9ad
commit eef93c42d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,8 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> {{ i18n.t('general.cancel') }}</button>
<button class="btn btn-primary" @click="submitPrint" :disabled="!selectedPrinter || !selectedTemplate">
<button class="btn btn-primary" @click="submitPrint" :disabled="!selectedPrinter || !selectedTemplate
|| selectedPrinter.attributes.status !== 'ready'">
{{ i18n.t(`repository_row.modal_print_label.${labelTemplateError ? 'print_anyway' : 'print_label'}`) }}
</button>
</div>