FolderPicker: Remove useNewForms from FolderPicker (#31485)

* FolderPicker: Remove useNewForms from FolderPicker

* Updated snapshot
This commit is contained in:
Torkel Ödegaard
2021-02-26 08:42:00 +01:00
committed by GitHub
parent 119963ada2
commit c41b559063
7 changed files with 24 additions and 63 deletions

View File

@@ -84,7 +84,6 @@ export const GeneralSettings: React.FC<Props> = ({ dashboard }) => {
</Field>
<Field label="Folder">
<FolderPicker
useNewForms={true}
initialTitle={dashboard.meta.folderTitle}
initialFolderId={dashboard.meta.folderId}
onChange={onFolderChange}

View File

@@ -109,7 +109,6 @@ export const SaveDashboardAsForm: React.FC<SaveDashboardFormProps & { isNew?: bo
initialFolderId={dashboard.meta.folderId}
initialTitle={dashboard.meta.folderTitle}
enableCreateNew
useNewForms
/>
</Field>
<Field label="Copy tags">

View File

@@ -68,7 +68,6 @@ export const ImportDashboardForm: FC<Props> = ({
<InputControl
as={FolderPicker}
name="folder"
useNewForms
enableCreateNew
initialFolderId={initialFolderId}
control={control}

View File

@@ -59,7 +59,7 @@ export const MoveToFolderModal: FC<Props> = ({ results, onMoveItems, isOpen, onD
Move the {selectedDashboards.length} selected dashboard{selectedDashboards.length === 1 ? '' : 's'} to the
following folder:
</p>
<FolderPicker onChange={(f) => setFolder(f as FolderInfo)} useNewForms />
<FolderPicker onChange={(f) => setFolder(f as FolderInfo)} />
</div>
<HorizontalGroup justify="center">