NestedFolders: Rename FolderPicker to OldFolderPicker (#72098)

* Rename FolderPicker to OldFolderPicker

* fix jest mock

* fix jest mock
This commit is contained in:
Josh Hunt
2023-07-21 13:24:43 +00:00
committed by GitHub
parent b9fc097ccd
commit f3235ba959
13 changed files with 32 additions and 32 deletions

View File

@@ -3,7 +3,7 @@ import React from 'react';
import { config } from '@grafana/runtime';
import { Button, Input, Switch, Form, Field, InputControl, HorizontalGroup } from '@grafana/ui';
import { NestedFolderPicker } from 'app/core/components/NestedFolderPicker/NestedFolderPicker';
import { FolderPicker } from 'app/core/components/Select/FolderPicker';
import { OldFolderPicker } from 'app/core/components/Select/OldFolderPicker';
import { DashboardModel, PanelModel } from 'app/features/dashboard/state';
import { validationSrv } from 'app/features/manage-dashboards/services/ValidationSrv';
@@ -114,7 +114,7 @@ export const SaveDashboardAsForm = ({
config.featureToggles.nestedFolderPicker ? (
<NestedFolderPicker {...field} value={field.value?.uid} />
) : (
<FolderPicker
<OldFolderPicker
{...field}
dashboardId={dashboard.id}
initialFolderUid={dashboard.meta.folderUid}