mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
TopNav: Plugin page layouts / information architecture (#53174)
* Change nav structure when topnav is enable to do initial tests with new information architecture * Support for nested sections * Updated * sentance case * Progress on plugin challange * Rewrite to functional component * Progress * Updates * Progress * Progress on things * missing file * Fixing issue with runtime, need to use setter way to set component exposed via runtime * Move PageLayoutType to grafana/data * Fixing breadcrumb issue, adding more tests * reverted backend change * fix recursive issue with cleanup
This commit is contained in:
@@ -12,7 +12,7 @@ import { AccessControlAction, Role, StoreState, Team } from 'app/types';
|
||||
import { connectWithCleanUp } from '../../core/components/connectWithCleanUp';
|
||||
|
||||
import { deleteTeam, loadTeams } from './state/actions';
|
||||
import { setSearchQuery, setTeamsSearchPage } from './state/reducers';
|
||||
import { initialTeamsState, setSearchQuery, setTeamsSearchPage } from './state/reducers';
|
||||
import { getSearchQuery, getTeams, getTeamsCount, getTeamsSearchPage, isPermissionTeamAdmin } from './state/selectors';
|
||||
|
||||
const pageLimit = 30;
|
||||
@@ -241,4 +241,8 @@ const mapDispatchToProps = {
|
||||
setTeamsSearchPage,
|
||||
};
|
||||
|
||||
export default connectWithCleanUp(mapStateToProps, mapDispatchToProps, (state) => state.teams)(TeamList);
|
||||
export default connectWithCleanUp(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps,
|
||||
(state) => (state.teams = initialTeamsState)
|
||||
)(TeamList);
|
||||
|
||||
Reference in New Issue
Block a user