Commit ee851e58 authored by Stan Hu's avatar Stan Hu

Simplify importer_status.js failed status implementation

parent 8fbb109d
...@@ -80,9 +80,8 @@ class ImporterStatus { ...@@ -80,9 +80,8 @@ class ImporterStatus {
.catch((error) => { .catch((error) => {
let details = error; let details = error;
const jobItem = $(`#repo_${this.id}`); const $statusField = $(`#repo_${this.id} .job-status`);
const statusField = jobItem.find('.job-status'); $statusField.text(__('Failed'));
statusField.html(__('Failed'));
if (error.response && error.response.data && error.response.data.errors) { if (error.response && error.response.data && error.response.data.errors) {
details = error.response.data.errors; details = error.response.data.errors;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment