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 {
.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;
......
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