NestedFolders: Add link to new work-in-progress UI (#66684)

This commit is contained in:
Josh Hunt 2023-04-18 13:42:40 +01:00 committed by GitHub
parent 948131aac3
commit 28b8d564fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`