Fixed missing js selector for the realtime pipelines commit comp
This commit is contained in:
parent
0a22ff267b
commit
265da7ddcb
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ export default () => {
|
|||
$('#tree-slider').waitForImages(() =>
|
||||
ajaxGet(document.querySelector('.js-tree-content').dataset.logsPath));
|
||||
|
||||
const commitPipelineStatusEl = document.getElementById('commit-pipeline-status');
|
||||
const commitPipelineStatusEl = document.querySelector('.js-commit-pipeline-status');
|
||||
const statusLink = document.querySelector('.commit-actions .ci-status-link');
|
||||
if (statusLink != null) {
|
||||
statusLink.remove();
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
- if commit.status(ref)
|
||||
= render_commit_status(commit, ref: ref)
|
||||
|
||||
#commit-pipeline-status{ data: { endpoint: pipelines_project_commit_path(project, commit.id) } }
|
||||
.js-commit-pipeline-status{ data: { endpoint: pipelines_project_commit_path(project, commit.id) } }
|
||||
= link_to commit.short_id, link, class: "commit-sha btn btn-transparent btn-link"
|
||||
= clipboard_button(text: commit.id, title: _("Copy commit SHA to clipboard"))
|
||||
= link_to_browse_code(project, commit)
|
||||
|
|
Loading…
Reference in a new issue