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

pull/66760/head
Josh Hunt 2 years ago committed by GitHub
parent 948131aac3
commit 28b8d564fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      public/app/features/search/components/DashboardListPage.tsx

@ -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…
Cancel
Save