mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* GrafanaUI: add option to close DeleteButton on confirm click * add datasource readOnly info to frontend settings * move isTruthy utility type guard * add generic non-visualization table component * Add correlations settings page * add missing readOnly in mock * Fix typo * avoid reloading correlations after add/remove * use DeepPartial from rhf * validate source data source * fix validation logic * fix navmodel test * add missing readonly property * remove unused styles * handle multiple clicks on elements * better UX for loading states * fix remove handler * add glue icon
15 lines
389 B
TypeScript
15 lines
389 B
TypeScript
import { DataSourceInstanceSettings, DataSourceJsonData, DataSourcePluginMeta } from '@grafana/data';
|
|
|
|
export function getDataSourceInstanceSetting(name: string, meta: DataSourcePluginMeta): DataSourceInstanceSettings {
|
|
return {
|
|
id: 1,
|
|
uid: '',
|
|
type: '',
|
|
name,
|
|
meta,
|
|
access: 'proxy',
|
|
jsonData: {} as unknown as DataSourceJsonData,
|
|
readOnly: false,
|
|
};
|
|
}
|