diff options
author | Stan Hu <stanhu@gmail.com> | 2018-08-06 19:52:12 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-08-06 19:52:12 +0300 |
commit | ee851e58490004f985f914f3cfa715b03cdf4982 (patch) | |
tree | f8f54244b03a016fef7880a0991a05cdb0f5a279 | |
parent | 8fbb109dea4716771c1abfa5d64935c0ad90ff43 (diff) |
Simplify importer_status.js failed status implementation
-rw-r--r-- | app/assets/javascripts/importer_status.js | 5 |
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; |