mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NestedFolders: Backend nested-dashboards route (#66955)
* NestedFolders: Add backend route for temp browse dashboards page * tweak 'preview new ui' badge * tweak 'preview new ui' badge
This commit is contained in:
parent
bec18e390e
commit
78d7b6c0c9
@ -152,6 +152,12 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/dashboards/*", reqSignedIn, hs.Index)
|
||||
r.Get("/goto/:uid", reqSignedIn, hs.redirectFromShortURL, hs.Index)
|
||||
|
||||
// Temporary routes for the work-in-progress new Browse Dashboards views
|
||||
if hs.Features.IsEnabled(featuremgmt.FlagNestedFolders) {
|
||||
r.Get("/nested-dashboards/", reqSignedIn, hs.Index)
|
||||
r.Get("/nested-dashboards/*", reqSignedIn, hs.Index)
|
||||
}
|
||||
|
||||
if hs.Features.IsEnabled(featuremgmt.FlagPublicDashboards) {
|
||||
// list public dashboards
|
||||
r.Get("/public-dashboards/list", reqSignedIn, hs.Index)
|
||||
|
@ -4,7 +4,7 @@ import { useAsync } from 'react-use';
|
||||
|
||||
import { locationUtil, NavModelItem } from '@grafana/data';
|
||||
import { config, locationService } from '@grafana/runtime';
|
||||
import { Badge, Link } from '@grafana/ui';
|
||||
import { Badge, Link, Tooltip } from '@grafana/ui';
|
||||
import { Page } from 'app/core/components/Page/Page';
|
||||
import { FolderDTO } from 'app/types';
|
||||
|
||||
@ -47,7 +47,11 @@ export const DashboardListPage = memo(({ match, location }: Props) => {
|
||||
actions={
|
||||
config.featureToggles.nestedFolders && (
|
||||
<Link href="/nested-dashboards">
|
||||
<Badge icon="folder" color="blue" text="Try WIP nested folders UI" />
|
||||
<Tooltip content="New Browse Dashboards for nested folders is still under development and may be missing features">
|
||||
<span>
|
||||
<Badge icon="folder" color="blue" text="Preview new Browse Dashboards" />
|
||||
</span>
|
||||
</Tooltip>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user