Commit d4cb6614 authored by Clement Ho's avatar Clement Ho

Merge branch 'jivl-fix-kubernetes-pod-dropdown' into 'master'

Fix pod log dropdown not switching

Closes #7745

See merge request gitlab-org/gitlab-ee!8660
parents 1d069e41 4ad4acc3
...@@ -94,7 +94,7 @@ export default class KubernetesPodLogs extends LogOutputBehaviours { ...@@ -94,7 +94,7 @@ export default class KubernetesPodLogs extends LogOutputBehaviours {
`); `);
}); });
$podDropdownMenu.find('li').on('click', this.changePodLog.bind(this)); $podDropdownMenu.find('button').on('click', this.changePodLog.bind(this));
} }
changePodLog(el) { changePodLog(el) {
......
---
title: fix pod dropdown not switching pod logs
merge_request: 8660
author:
type: fixed
...@@ -70,7 +70,7 @@ describe('Kubernetes Logs', () => { ...@@ -70,7 +70,7 @@ describe('Kubernetes Logs', () => {
anotherPod.click(); anotherPod.click();
expect(changePodLogSpy).toHaveBeenCalled(); expect(changePodLogSpy.calls.count()).toEqual(2);
done(); done();
}, 0); }, 0);
}); });
......
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