mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
lint
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
86b19ac24b
commit
d8297e44bc
@ -242,7 +242,7 @@ export function buildMenu(windowManager: WindowManager) {
|
|||||||
const parentLabels: string[] = [];
|
const parentLabels: string[] = [];
|
||||||
let menuItem: MenuItem
|
let menuItem: MenuItem
|
||||||
|
|
||||||
for (let name of names) {
|
for (const name of names) {
|
||||||
parentLabels.push(name);
|
parentLabels.push(name);
|
||||||
menuItem = menu?.items?.find(item => item.label === name);
|
menuItem = menu?.items?.find(item => item.label === name);
|
||||||
if (!menuItem) {
|
if (!menuItem) {
|
||||||
@ -256,7 +256,7 @@ export function buildMenu(windowManager: WindowManager) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { enabled, visible, click } = menuItem;
|
const { enabled, visible, click } = menuItem;
|
||||||
if (enabled === false || visible === false || typeof click !== 'function') {
|
if (enabled === false || visible === false || typeof click !== 'function') {
|
||||||
logger.info(`[MENU:test-menu-item-click] Menu item ${parentLabels.join(" -> ")} not clickable`);
|
logger.info(`[MENU:test-menu-item-click] Menu item ${parentLabels.join(" -> ")} not clickable`);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user