fixes inport eln error message and spinner [fixes SCI-752]

This commit is contained in:
zmagod 2016-12-05 10:44:58 +01:00
parent 7309da9d92
commit ef2471d3f7
3 changed files with 8 additions and 1 deletions

View file

@ -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);
} }
}); });

View file

@ -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(

View file

@ -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:"