Skip to content

Commit

Permalink
fixes #26052 - navigation missing IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
glekner authored and tbrisker committed May 16, 2019
1 parent a8a8fdb commit 68bda9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
@@ -1,5 +1,5 @@
import { createSelector } from 'reselect';
import { get } from 'lodash';
import { get, snakeCase } from 'lodash';
import { noop } from '../../common/helpers';

export const selectLayout = state => state.layout;
Expand Down Expand Up @@ -29,6 +29,7 @@ const patternflyItems = (data, currentLocation, currentOrganization) => {
const childrenArray = [];
item.children.forEach(child => {
const childObject = {
id: `menu_item_${snakeCase(child.name)}`,
title: child.name,
isDivider: child.type === 'divider' && !!child.name,
className:
Expand Down
Expand Up @@ -93,6 +93,7 @@ Array [
Object {
"className": "",
"href": "/",
"id": "menu_item_dashboard",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -101,6 +102,7 @@ Array [
Object {
"className": "",
"href": "/fact_values",
"id": "menu_item_facts",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -116,6 +118,7 @@ Array [
Object {
"className": "",
"href": "/hosts/new",
"id": "menu_item_all_hosts",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -124,6 +127,7 @@ Array [
Object {
"className": "",
"href": "/architectures",
"id": "menu_item_architectures",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -139,6 +143,7 @@ Array [
Object {
"className": "",
"href": "/environments",
"id": "menu_item_environments",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -147,6 +152,7 @@ Array [
Object {
"className": "",
"href": "/architectures",
"id": "menu_item_architectures",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -162,6 +168,7 @@ Array [
Object {
"className": "",
"href": "/domains",
"id": "menu_item_domains",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand All @@ -170,6 +177,7 @@ Array [
Object {
"className": "",
"href": "/realms",
"id": "menu_item_realms",
"isDivider": false,
"onClick": [Function],
"preventHref": true,
Expand Down

0 comments on commit 68bda9e

Please sign in to comment.