提交 ee851e58 编写于 作者: S Stan Hu

Simplify importer_status.js failed status implementation

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册