Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
2fac8344
Unverified
Commit
2fac8344
authored
Mar 17, 2020
by
Alex Khomenko
Committed by
GitHub
Mar 17, 2020
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dashboard picker's props (#22815)
parent
67fc251f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
packages/grafana-ui/src/components/Forms/Select/Select.tsx
+1
-0
public/app/core/components/Select/DashboardPicker.tsx
+6
-2
No files found.
packages/grafana-ui/src/components/Forms/Select/Select.tsx
View file @
2fac8344
...
...
@@ -15,6 +15,7 @@ export function MultiSelect<T>(props: MultiSelectCommonProps<T>) {
interface
AsyncSelectProps
<
T
>
extends
Omit
<
SelectCommonProps
<
T
>
,
'options'
>
,
SelectAsyncProps
<
T
>
{
// AsyncSelect has options stored internally. We cannot enable plain values as we don't have access to the fetched options
value
?:
SelectableValue
<
T
>
;
invalid
?:
boolean
;
}
export
function
AsyncSelect
<
T
>
(
props
:
AsyncSelectProps
<
T
>
)
{
...
...
public/app/core/components/Select/DashboardPicker.tsx
View file @
2fac8344
...
...
@@ -12,6 +12,8 @@ export interface Props {
currentDashboard
?:
SelectableValue
<
number
>
;
size
?:
FormInputSize
;
isClearable
?:
boolean
;
invalid
?:
boolean
;
disabled
?:
boolean
;
}
const
getDashboards
=
(
query
=
''
)
=>
{
...
...
@@ -29,7 +31,8 @@ export const DashboardPicker: FC<Props> = ({
currentDashboard
,
size
=
'md'
,
isClearable
=
false
,
...
rest
invalid
,
disabled
,
})
=>
{
const
debouncedSearch
=
debounce
(
getDashboards
,
300
,
{
leading
:
true
,
...
...
@@ -49,7 +52,8 @@ export const DashboardPicker: FC<Props> = ({
placeholder=
"Select dashboard"
noOptionsMessage=
"No dashboards found"
value=
{
currentDashboard
}
{
...
rest
}
invalid=
{
invalid
}
disabled=
{
disabled
}
/>
);
};
Kornkitt Poolsup
@Doratong24
mentioned in commit
36232857
Mar 05, 2021
mentioned in commit
36232857
mentioned in commit 36232857dfb74171d8ccc8cbcc67eaa382854baf
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment