Merge pull request #6332 from rekonder/aj_SCI_9275

Fix protocol parser import button closing [SCI-9275]
This commit is contained in:
Alex Kriuchykhin 2023-10-03 10:28:46 +02:00 committed by GitHub
commit 4aa43395e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -47,6 +47,7 @@
},
methods: {
open() {
$('.protocol-import-dropdown-button').dropdown('toggle');
$(this.$refs.modal).modal('show');
},
close() {
@ -66,7 +67,6 @@
confirm() {
let formData = new FormData();
Array.from(this.files).forEach(file => formData.append('files[]', file, file.name));
$('.protocol-import-dropdown').dropdown('toggle');
$.post({ url: this.importUrl, data: formData, processData: false, contentType: false }, (data) => {
this.state = 'in_progress';

View file

@ -11,7 +11,7 @@
</button>
<div id="protocol-import-group" class="relative sci-btn-group only-active" role="group">
<button class="btn btn-light" title="<%= t("protocols.index.import_tooltip") %>"
<button class="btn btn-light protocol-import-dropdown-button" title="<%= t("protocols.index.import_tooltip") %>"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">