Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-08-06 19:52:12 +0300
committerStan Hu <stanhu@gmail.com>2018-08-06 19:52:12 +0300
commitee851e58490004f985f914f3cfa715b03cdf4982 (patch)
treef8f54244b03a016fef7880a0991a05cdb0f5a279
parent8fbb109dea4716771c1abfa5d64935c0ad90ff43 (diff)
Simplify importer_status.js failed status implementation
-rw-r--r--app/assets/javascripts/importer_status.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/importer_status.js b/app/assets/javascripts/importer_status.js
index a7f5de80823..0035d809062 100644
--- a/app/assets/javascripts/importer_status.js
+++ b/app/assets/javascripts/importer_status.js
@@ -80,9 +80,8 @@ class ImporterStatus {
.catch((error) => {
let details = error;
- const jobItem = $(`#repo_${this.id}`);
- const statusField = jobItem.find('.job-status');
- statusField.html(__('Failed'));
+ const $statusField = $(`#repo_${this.id} .job-status`);
+ $statusField.text(__('Failed'));
if (error.response && error.response.data && error.response.data.errors) {
details = error.response.data.errors;