mirror of https://github.com/grafana/grafana.git
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
|
@ -415,7 +415,6 @@ playwright.config.ts @grafana/plugins-platform-frontend
|
||||||
/public/app/features/live/ @grafana/grafana-app-platform-squad
|
/public/app/features/live/ @grafana/grafana-app-platform-squad
|
||||||
/public/app/features/apiserver/ @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/ @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/notifications/ @grafana/grafana-frontend-platform
|
||||||
/public/app/features/org/ @grafana/grafana-frontend-platform
|
/public/app/features/org/ @grafana/grafana-frontend-platform
|
||||||
/public/app/features/panel/ @grafana/dashboards-squad
|
/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 { getGrafanaSearcher } from 'app/features/search/service';
|
||||||
|
|
||||||
import { useDispatch } from '../../types';
|
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 './api/useRecentlyDeletedStateManager';
|
||||||
import { useRecentlyDeletedStateManager } from './utils/useRecentlyDeletedStateManager';
|
import { RecentlyDeletedActions } from './components/RecentlyDeletedActions';
|
||||||
|
import { SearchView } from './components/SearchView';
|
||||||
|
import { getFolderPermissions } from './permissions';
|
||||||
|
import { setAllSelection } from './state';
|
||||||
|
|
||||||
const RecentlyDeletedPage = memo(() => {
|
const RecentlyDeletedPage = memo(() => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
|
@ -8,10 +8,11 @@ import appEvents from '../../../core/app_events';
|
||||||
import { Trans } from '../../../core/internationalization';
|
import { Trans } from '../../../core/internationalization';
|
||||||
import { useDispatch } from '../../../types';
|
import { useDispatch } from '../../../types';
|
||||||
import { ShowModalReactEvent } from '../../../types/events';
|
import { ShowModalReactEvent } from '../../../types/events';
|
||||||
import { useRestoreDashboardMutation } from '../../browse-dashboards/api/browseDashboardsAPI';
|
import { useRestoreDashboardMutation } from '../api/browseDashboardsAPI';
|
||||||
import { setAllSelection, useActionSelectionState } from '../../browse-dashboards/state';
|
import { useRecentlyDeletedStateManager } from '../api/useRecentlyDeletedStateManager';
|
||||||
import { RestoreModal } from '../components/RestoreModal';
|
import { setAllSelection, useActionSelectionState } from '../state';
|
||||||
import { useRecentlyDeletedStateManager } from '../utils/useRecentlyDeletedStateManager';
|
|
||||||
|
import { RestoreModal } from './RestoreModal';
|
||||||
|
|
||||||
export function RecentlyDeletedActions() {
|
export function RecentlyDeletedActions() {
|
||||||
const styles = useStyles2(getStyles);
|
const styles = useStyles2(getStyles);
|
|
@ -439,7 +439,7 @@ export function getAppRoutes(): RouteDescriptor[] {
|
||||||
path: '/dashboard/recentlyDeleted',
|
path: '/dashboard/recentlyDeleted',
|
||||||
roles: () => contextSrv.evaluatePermission([AccessControlAction.DashboardsDelete]),
|
roles: () => contextSrv.evaluatePermission([AccessControlAction.DashboardsDelete]),
|
||||||
component: SafeDynamicImport(
|
component: SafeDynamicImport(
|
||||||
() => import(/* webpackChunkName: "RecentlyDeletedPage" */ 'app/features/manage-dashboards/RecentlyDeletedPage')
|
() => import(/* webpackChunkName: "RecentlyDeletedPage" */ 'app/features/browse-dashboards/RecentlyDeletedPage')
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue