added data source type type

This commit is contained in:
Peter Holmberg
2018-10-03 09:56:15 +02:00
parent a381db3237
commit 44f2041cf3
5 changed files with 71 additions and 20 deletions

View File

@@ -17,9 +17,15 @@ export interface DataSource {
readOnly: false;
}
export interface DataSourceType {
name: string;
type: string;
}
export interface DataSourcesState {
dataSources: DataSource[];
searchQuery: string;
layoutMode: LayoutMode;
dataSourcesCount: number;
dataSourceTypes: DataSourceType[];
}

View File

@@ -7,7 +7,7 @@ import { DashboardState } from './dashboard';
import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
import { ApiKey, ApiKeysState, NewApiKey } from './apiKeys';
import { User } from './user';
import { DataSource, DataSourcesState } from './datasources';
import { DataSource, DataSourcesState, DataSourceType } from './datasources';
import { PluginMeta, Plugin, PluginsState } from './plugins';
export {
@@ -42,6 +42,7 @@ export {
Plugin,
PluginsState,
DataSourcesState,
DataSourceType,
};
export interface StoreState {