mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DashboardListPanel: Fixes issue with folder picker always showing All and using old form styles (#31160)
This commit is contained in:
@@ -45,7 +45,15 @@ export const plugin = new PanelPlugin<DashListOptions>(DashList)
|
|||||||
id: 'folderId',
|
id: 'folderId',
|
||||||
defaultValue: null,
|
defaultValue: null,
|
||||||
editor: function RenderFolderPicker(props) {
|
editor: function RenderFolderPicker(props) {
|
||||||
return <FolderPicker initialTitle="All" enableReset={true} onChange={({ id }) => props.onChange(id)} />;
|
return (
|
||||||
|
<FolderPicker
|
||||||
|
initialFolderId={props.value}
|
||||||
|
useNewForms
|
||||||
|
initialTitle="All"
|
||||||
|
enableReset={true}
|
||||||
|
onChange={({ id }) => props.onChange(id)}
|
||||||
|
/>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.addCustomEditor({
|
.addCustomEditor({
|
||||||
|
|||||||
Reference in New Issue
Block a user