mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
* creating types, actions, reducer * load teams and store in redux * delete team * set search query action and tests * Teampages page * team members, bug in fetching team * flattened team state, tests for TeamMembers * test for team member selector * team settings * actions for group sync * tests for team groups * removed comment * remove old stores * fix: formating of datasource.go * fix: minor changes to imports * adding debounce and fixing issue in teamlist * refactoring: moving types to their own files
60 lines
1.5 KiB
TypeScript
60 lines
1.5 KiB
TypeScript
export const getMockNavModel = (pageName: string) => {
|
|
return {
|
|
node: {
|
|
active: false,
|
|
icon: 'gicon gicon-team',
|
|
id: `team-${pageName}-2`,
|
|
text: `${pageName}`,
|
|
url: 'org/teams/edit/2/members',
|
|
parentItem: {
|
|
img: '/avatar/b5695b61c91d13e7fa2fe71cfb95de9b',
|
|
id: 'team-2',
|
|
subTitle: 'Manage members & settings',
|
|
url: '',
|
|
text: 'test1',
|
|
breadcrumbs: [{ title: 'Teams', url: 'org/teams' }],
|
|
children: [
|
|
{
|
|
active: false,
|
|
icon: 'gicon gicon-team',
|
|
id: 'team-members-2',
|
|
text: 'Members',
|
|
url: 'org/teams/edit/2/members',
|
|
},
|
|
{
|
|
active: false,
|
|
icon: 'fa fa-fw fa-sliders',
|
|
id: 'team-settings-2',
|
|
text: 'Settings',
|
|
url: 'org/teams/edit/2/settings',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
main: {
|
|
img: '/avatar/b5695b61c91d13e7fa2fe71cfb95de9b',
|
|
id: 'team-2',
|
|
subTitle: 'Manage members & settings',
|
|
url: '',
|
|
text: 'test1',
|
|
breadcrumbs: [{ title: 'Teams', url: 'org/teams' }],
|
|
children: [
|
|
{
|
|
active: true,
|
|
icon: 'gicon gicon-team',
|
|
id: 'team-members-2',
|
|
text: 'Members',
|
|
url: 'org/teams/edit/2/members',
|
|
},
|
|
{
|
|
active: false,
|
|
icon: 'fa fa-fw fa-sliders',
|
|
id: 'team-settings-2',
|
|
text: 'Settings',
|
|
url: 'org/teams/edit/2/settings',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
};
|