Merge pull request #6678 from artoscinote/ma_SCI_9749

Fix label printing modal [SCI-9749]
This commit is contained in:
Martin Artnik 2023-11-21 13:45:36 +01:00 committed by GitHub
commit f866ecfcdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@
e.stopPropagation();
if (typeof PrintModalComponent !== 'undefined') {
PrintModalComponent.showModal = true;
PrintModalComponent.openModal();
if (selectedRows && selectedRows.length) {
$('#modal-info-repository-row').modal('hide');
PrintModalComponent.row_ids = selectedRows;

View file

@ -25,12 +25,15 @@ function initPrintModalComponent() {
methods: {
closeModal() {
this.showModal = false;
},
openModal() {
this.showModal = true;
}
}
});
app.component('PrintModalContainer', PrintModalContainer);
app.config.globalProperties.i18n = window.I18n;
mountWithTurbolinks(app, '.print-label-modal-container');
window.PrintModalComponent = mountWithTurbolinks(app, '.print-label-modal-container');
}
}