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
c3336e6e
Unverified
Commit
c3336e6e
authored
Oct 14, 2020
by
Agnès Toulet
Committed by
GitHub
Oct 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: clean up Enterprise feature toggles (#28264)
parent
f8e0adb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
packages/grafana-data/src/types/config.ts
+0
-2
packages/grafana-runtime/src/config.ts
+0
-2
public/app/features/datasources/state/navModel.ts
+7
-9
No files found.
packages/grafana-data/src/types/config.ts
View file @
c3336e6e
...
...
@@ -41,8 +41,6 @@ export interface FeatureToggles {
* Available only in Grafana Enterprise
*/
meta
:
boolean
;
datasourceInsights
:
boolean
;
reportGrid
:
boolean
;
}
/**
...
...
packages/grafana-runtime/src/config.ts
View file @
c3336e6e
...
...
@@ -55,8 +55,6 @@ export class GrafanaBootConfig implements GrafanaConfig {
live
:
false
,
expressions
:
false
,
meta
:
false
,
datasourceInsights
:
false
,
reportGrid
:
false
,
ngalert
:
false
,
};
licenseInfo
:
LicenseInfo
=
{}
as
LicenseInfo
;
...
...
public/app/features/datasources/state/navModel.ts
View file @
c3336e6e
...
...
@@ -54,15 +54,13 @@ export function buildNavModel(dataSource: DataSourceSettings, plugin: GenericDat
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`
,
});
}
navModel
.
children
!
.
push
({
active
:
false
,
icon
:
'info-circle'
,
id
:
`datasource-insights-
${
dataSource
.
id
}
`
,
text
:
'Insights'
,
url
:
`datasources/edit/
${
dataSource
.
id
}
/insights`
,
});
}
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