mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Merge pull request #6678 from artoscinote/ma_SCI_9749
Fix label printing modal [SCI-9749]
This commit is contained in:
commit
f866ecfcdb
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue