Skip to content

Commit

Permalink
Fix: showing current settings tab broken in MULTI_ORG.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Apr 30, 2020
1 parent ae9bbe2 commit a88defd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/app/pages/data-sources/DataSourcesList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const DataSourcesListPage = wrapSettingsTab(
permission: "admin",
title: "Data Sources",
path: "data_sources",
isActive: path => path.includes("/data_sources") && !path.includes("/groups"),
order: 1,
},
DataSourcesList
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/users/UsersList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const UsersListPage = wrapSettingsTab(
permission: "list_users",
title: "Users",
path: "users",
isActive: path => path.startsWith("/users") && path !== "/users/me",
isActive: path => path.includes("/users") && !path.includes("/users/me"),
order: 2,
},
itemsList(
Expand Down
2 changes: 1 addition & 1 deletion client/app/services/settingsMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SettingsMenuItem {
}

isActive(path) {
return path.startsWith(this.pathPrefix);
return path.includes(this.pathPrefix);
}

isAvailable() {
Expand Down

0 comments on commit a88defd

Please sign in to comment.