mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
fixes inport eln error message and spinner [fixes SCI-752]
This commit is contained in:
parent
7309da9d92
commit
ef2471d3f7
|
@ -494,7 +494,12 @@ function initImport() {
|
||||||
// Simply reload page
|
// Simply reload page
|
||||||
location.reload();
|
location.reload();
|
||||||
} else {
|
} else {
|
||||||
alert(I18n.t("my_modules.protocols.load_from_file_error"));
|
if (data.status === 'size_too_large') {
|
||||||
|
alert(I18n.t("my_modules.protocols.load_from_file_size_error"));
|
||||||
|
} else {
|
||||||
|
alert(I18n.t("my_modules.protocols.load_from_file_error"));
|
||||||
|
}
|
||||||
|
animateSpinner(null, false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -657,6 +657,7 @@ function initImport() {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
modalBody.append(failedMessageEl);
|
modalBody.append(failedMessageEl);
|
||||||
|
animateSpinner(null, false);
|
||||||
}
|
}
|
||||||
if (nrSuccessful > 0) {
|
if (nrSuccessful > 0) {
|
||||||
var successMessageEl = newElement(
|
var successMessageEl = newElement(
|
||||||
|
|
|
@ -552,6 +552,7 @@ en:
|
||||||
confirm: "Copy to repository"
|
confirm: "Copy to repository"
|
||||||
load_from_file_flash: "Successfully loaded the protocol from the file."
|
load_from_file_flash: "Successfully loaded the protocol from the file."
|
||||||
load_from_file_error: "Failed to load the protocol from file."
|
load_from_file_error: "Failed to load the protocol from file."
|
||||||
|
load_from_file_size_error: "Failed to load the protocol from file. Limit is 50Mb."
|
||||||
results:
|
results:
|
||||||
head_title: "%{project} | %{module} | Results"
|
head_title: "%{project} | %{module} | Results"
|
||||||
add_label: "Add new result:"
|
add_label: "Add new result:"
|
||||||
|
|
Loading…
Reference in a new issue