Skip to content
Snippets Groups Projects
Commit ee851e58 authored by Stan Hu's avatar Stan Hu
Browse files

Simplify importer_status.js failed status implementation

parent 8fbb109d
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment