Commit 4ad4acc3 authored by Jose Vargas's avatar Jose Vargas

Fix pod log dropdown not switching

parent 1d069e41
...@@ -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