文件操作 - actions.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/features/variables/custom/actions.ts
编辑文件内容
import { validateVariableSelectionState } from '../state/actions'; import { ThunkResult } from 'app/types'; import { createCustomOptionsFromQuery } from './reducer'; import { toVariablePayload, VariableIdentifier } from '../state/types'; export const updateCustomVariableOptions = (identifier: VariableIdentifier): ThunkResult<void> => { return async dispatch => { await dispatch(createCustomOptionsFromQuery(toVariablePayload(identifier))); await dispatch(validateVariableSelectionState(identifier)); }; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件