diff options
author | Michael Lando <ml636r@att.com> | 2017-08-07 07:05:40 +0300 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-08-07 07:05:40 +0300 |
commit | b2c60183d5d654b945a24ec5564807e4f691c6e8 (patch) | |
tree | d6cdc354fa7ce27ea1e0ce60e6c57aa7c1ef20b6 /catalog-ui/src/app/view-models/workspace | |
parent | d1d771bed17c6a5beea19af8da0bf9113972f25a (diff) |
[SDC] code sync
Change-Id: I576dd69504722c341b0f41a1f6232ed3f4bee8df
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-ui/src/app/view-models/workspace')
-rw-r--r-- | catalog-ui/src/app/view-models/workspace/workspace-view-model.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts b/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts index 97a58402de..a3af8ca68e 100644 --- a/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts +++ b/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts @@ -616,8 +616,10 @@ export class WorkspaceViewModel { }; this.$scope.updateSelectedMenuItem = (state:string):void => { + let stateArray:Array<string> = state.split('.'); + let stateWithoutInternalNavigate:string = stateArray[0] + '.' + stateArray[1]; let selectedItem:MenuItem = _.find(this.$scope.leftBarTabs.menuItems, (item:MenuItem) => { - return item.state === state; + return _.startsWith(item.state, stateWithoutInternalNavigate); }); this.$scope.leftBarTabs.selectedIndex = selectedItem ? this.$scope.leftBarTabs.menuItems.indexOf(selectedItem) : 0; }; |