mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Support having a datasources array in the rules filter * Fix tests * Display a MultiplePicker for filtering datasources * Fix tests * Refactor as MultipleDataSourcePicker as FC * Make select box wider * Remove FC from component definition * Display ds options in groups based on whether they manage/don't manage rules * Change dropdown texts and add help info
11 lines
228 B
TypeScript
11 lines
228 B
TypeScript
import { RulesFilter } from '../search/rulesSearchParser';
|
|
|
|
export function getFilter(filter: Partial<RulesFilter>): RulesFilter {
|
|
return {
|
|
freeFormWords: [],
|
|
labels: [],
|
|
dataSourceNames: [],
|
|
...filter,
|
|
};
|
|
}
|