mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move RecentlyDeleted into browse-dashboards (#89214)
* Move RecentlyDeleted into browse-dashboards * refactor: change path --------- Co-authored-by: Laura Benz <laura.benz@grafana.com>
This commit is contained in:
parent
3bfa1ed9ed
commit
15c81b2a8b
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -415,7 +415,6 @@ playwright.config.ts @grafana/plugins-platform-frontend
|
||||
/public/app/features/live/ @grafana/grafana-app-platform-squad
|
||||
/public/app/features/apiserver/ @grafana/grafana-app-platform-squad
|
||||
/public/app/features/manage-dashboards/ @grafana/dashboards-squad
|
||||
/public/app/features/manage-dashboards/RecentlyDeletedPage.tsx @grafana/grafana-frontend-platform
|
||||
/public/app/features/notifications/ @grafana/grafana-frontend-platform
|
||||
/public/app/features/org/ @grafana/grafana-frontend-platform
|
||||
/public/app/features/panel/ @grafana/dashboards-squad
|
||||
|
@ -6,12 +6,12 @@ import { ActionRow } from 'app/features/search/page/components/ActionRow';
|
||||
import { getGrafanaSearcher } from 'app/features/search/service';
|
||||
|
||||
import { useDispatch } from '../../types';
|
||||
import { SearchView } from '../browse-dashboards/components/SearchView';
|
||||
import { getFolderPermissions } from '../browse-dashboards/permissions';
|
||||
import { setAllSelection } from '../browse-dashboards/state';
|
||||
|
||||
import { RecentlyDeletedActions } from './state/RecentlyDeletedActions';
|
||||
import { useRecentlyDeletedStateManager } from './utils/useRecentlyDeletedStateManager';
|
||||
import { useRecentlyDeletedStateManager } from './api/useRecentlyDeletedStateManager';
|
||||
import { RecentlyDeletedActions } from './components/RecentlyDeletedActions';
|
||||
import { SearchView } from './components/SearchView';
|
||||
import { getFolderPermissions } from './permissions';
|
||||
import { setAllSelection } from './state';
|
||||
|
||||
const RecentlyDeletedPage = memo(() => {
|
||||
const dispatch = useDispatch();
|
@ -8,10 +8,11 @@ import appEvents from '../../../core/app_events';
|
||||
import { Trans } from '../../../core/internationalization';
|
||||
import { useDispatch } from '../../../types';
|
||||
import { ShowModalReactEvent } from '../../../types/events';
|
||||
import { useRestoreDashboardMutation } from '../../browse-dashboards/api/browseDashboardsAPI';
|
||||
import { setAllSelection, useActionSelectionState } from '../../browse-dashboards/state';
|
||||
import { RestoreModal } from '../components/RestoreModal';
|
||||
import { useRecentlyDeletedStateManager } from '../utils/useRecentlyDeletedStateManager';
|
||||
import { useRestoreDashboardMutation } from '../api/browseDashboardsAPI';
|
||||
import { useRecentlyDeletedStateManager } from '../api/useRecentlyDeletedStateManager';
|
||||
import { setAllSelection, useActionSelectionState } from '../state';
|
||||
|
||||
import { RestoreModal } from './RestoreModal';
|
||||
|
||||
export function RecentlyDeletedActions() {
|
||||
const styles = useStyles2(getStyles);
|
@ -439,7 +439,7 @@ export function getAppRoutes(): RouteDescriptor[] {
|
||||
path: '/dashboard/recentlyDeleted',
|
||||
roles: () => contextSrv.evaluatePermission([AccessControlAction.DashboardsDelete]),
|
||||
component: SafeDynamicImport(
|
||||
() => import(/* webpackChunkName: "RecentlyDeletedPage" */ 'app/features/manage-dashboards/RecentlyDeletedPage')
|
||||
() => import(/* webpackChunkName: "RecentlyDeletedPage" */ 'app/features/browse-dashboards/RecentlyDeletedPage')
|
||||
),
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user