mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NestedFolders: Add link to new work-in-progress UI (#66684)
This commit is contained in:
parent
948131aac3
commit
28b8d564fe
@ -3,7 +3,8 @@ import React, { memo } from 'react';
|
||||
import { useAsync } from 'react-use';
|
||||
|
||||
import { locationUtil, NavModelItem } from '@grafana/data';
|
||||
import { locationService } from '@grafana/runtime';
|
||||
import { config, locationService } from '@grafana/runtime';
|
||||
import { Badge, Link } from '@grafana/ui';
|
||||
import { Page } from 'app/core/components/Page/Page';
|
||||
import { FolderDTO } from 'app/types';
|
||||
|
||||
@ -40,7 +41,17 @@ export const DashboardListPage = memo(({ match, location }: Props) => {
|
||||
}, [match.params.uid]);
|
||||
|
||||
return (
|
||||
<Page navId="dashboards/browse" pageNav={value?.pageNav}>
|
||||
<Page
|
||||
navId="dashboards/browse"
|
||||
pageNav={value?.pageNav}
|
||||
actions={
|
||||
config.featureToggles.nestedFolders && (
|
||||
<Link href="/nested-dashboards">
|
||||
<Badge icon="folder" color="blue" text="Try WIP nested folders UI" />
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
>
|
||||
<Page.Contents
|
||||
isLoading={loading}
|
||||
className={css`
|
||||
|
Loading…
Reference in New Issue
Block a user