forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
529 B
11 lines
529 B
import { validateVariableSelectionState } from '../state/actions';
|
|
import { ThunkResult } from 'app/types';
|
|
import { createConstantOptionsFromQuery } from './reducer';
|
|
import { toVariablePayload, VariableIdentifier } from '../state/types';
|
|
|
|
export const updateConstantVariableOptions = (identifier: VariableIdentifier): ThunkResult<void> => {
|
|
return async (dispatch) => {
|
|
await dispatch(createConstantOptionsFromQuery(toVariablePayload(identifier)));
|
|
await dispatch(validateVariableSelectionState(identifier));
|
|
};
|
|
};
|
|
|