Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4853770d
Unverified
Commit
4853770d
authored
Jun 18, 2020
by
Agnès Toulet
Committed by
GitHub
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Datasources: add new tab and feature toggle (#25663)
* Datasources: add insights tab * Config: add feature flag
parent
1479786f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
packages/grafana-data/src/types/config.ts
+1
-0
packages/grafana-runtime/src/config.ts
+1
-0
public/app/features/datasources/state/navModel.ts
+10
-0
No files found.
packages/grafana-data/src/types/config.ts
View file @
4853770d
...
@@ -39,6 +39,7 @@ export interface FeatureToggles {
...
@@ -39,6 +39,7 @@ export interface FeatureToggles {
* Available only in Grafana Enterprise
* Available only in Grafana Enterprise
*/
*/
meta
:
boolean
;
meta
:
boolean
;
datasourceInsights
:
boolean
;
}
}
/**
/**
...
...
packages/grafana-runtime/src/config.ts
View file @
4853770d
...
@@ -53,6 +53,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
...
@@ -53,6 +53,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
expressions
:
false
,
expressions
:
false
,
newEdit
:
false
,
newEdit
:
false
,
meta
:
false
,
meta
:
false
,
datasourceInsights
:
false
,
};
};
licenseInfo
:
LicenseInfo
=
{}
as
LicenseInfo
;
licenseInfo
:
LicenseInfo
=
{}
as
LicenseInfo
;
rendererAvailable
=
false
;
rendererAvailable
=
false
;
...
...
public/app/features/datasources/state/navModel.ts
View file @
4853770d
...
@@ -53,6 +53,16 @@ export function buildNavModel(dataSource: DataSourceSettings, plugin: GenericDat
...
@@ -53,6 +53,16 @@ export function buildNavModel(dataSource: DataSourceSettings, plugin: GenericDat
text
:
'Permissions'
,
text
:
'Permissions'
,
url
:
`datasources/edit/
${
dataSource
.
id
}
/permissions`
,
url
:
`datasources/edit/
${
dataSource
.
id
}
/permissions`
,
});
});
if
(
config
.
featureToggles
.
datasourceInsights
)
{
navModel
.
children
.
push
({
active
:
false
,
icon
:
'info-circle'
,
id
:
`datasource-insights-
${
dataSource
.
id
}
`
,
text
:
'Insights'
,
url
:
`datasources/edit/
${
dataSource
.
id
}
/insights`
,
});
}
}
}
return
navModel
;
return
navModel
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment