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
1581d04e
Unverified
Commit
1581d04e
authored
Dec 02, 2020
by
Hugo Häggmark
Committed by
GitHub
Dec 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: Adds Panel Library featuretoggle (#29521)
parent
9b2592dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
packages/grafana-data/src/types/config.ts
+1
-0
packages/grafana-runtime/src/config.ts
+1
-0
pkg/setting/setting.go
+6
-0
No files found.
packages/grafana-data/src/types/config.ts
View file @
1581d04e
...
...
@@ -37,6 +37,7 @@ export interface FeatureToggles {
ngalert
:
boolean
;
// Just for demo at the moment
traceToLogs
:
boolean
;
panelLibrary
:
boolean
;
/**
* @remarks
...
...
packages/grafana-runtime/src/config.ts
View file @
1581d04e
...
...
@@ -57,6 +57,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
meta
:
false
,
ngalert
:
false
,
traceToLogs
:
false
,
panelLibrary
:
false
,
};
licenseInfo
:
LicenseInfo
=
{}
as
LicenseInfo
;
rendererAvailable
=
false
;
...
...
pkg/setting/setting.go
View file @
1581d04e
...
...
@@ -334,10 +334,16 @@ func (cfg Cfg) IsNgAlertEnabled() bool {
return
cfg
.
FeatureToggles
[
"ngalert"
]
}
// IsHTTPRequestHistogramEnabled returns whether the http_request_histogram feature is enabled.
func
(
cfg
Cfg
)
IsHTTPRequestHistogramEnabled
()
bool
{
return
cfg
.
FeatureToggles
[
"http_request_histogram"
]
}
// IsPanelLibraryEnabled returns whether the panel library feature is enabled.
func
(
cfg
Cfg
)
IsPanelLibraryEnabled
()
bool
{
return
cfg
.
FeatureToggles
[
"panelLibrary"
]
}
type
CommandLineArgs
struct
{
Config
string
HomePath
string
...
...
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