Dashboard: Add configurable quick ranges for the time picker (#102254)
* Dashboard: Add configurable quick ranges for the time picker
* fix test and linter errors
* update from array to TimeOption
* Switching to grafana-scenes (Part 1 - remove grafana-ui changes
* Update SceneTimePicker initialization
* betterer
* remove hallucinated argument
* Revert "Bump scenes and fix types (#105167)"
This reverts commit c6428dfc74.
* make gen-go
* reset files
* Shorten documentation to increase maintainability
* Update _index.md
* the
---------
Co-authored-by: joshhunt <josh.hunt@grafana.com>
Co-authored-by: Jacob Valdez <jacob.valdez@grafana.com>
This commit is contained in:
co-authored by
joshhunt
Jacob Valdez
parent
f02ad33fd2
commit
e0d27dc0d7
@@ -312,6 +312,7 @@ type Cfg struct {
|
||||
Anonymous AnonymousSettings
|
||||
|
||||
DateFormats DateFormats
|
||||
QuickRanges QuickRanges
|
||||
|
||||
// User
|
||||
UserInviteMaxLifetime time.Duration
|
||||
@@ -1388,6 +1389,11 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
cfg.ScopesListScopesURL = scopesSection.Key("list_scopes_endpoint").MustString("")
|
||||
cfg.ScopesListDashboardsURL = scopesSection.Key("list_dashboards_endpoint").MustString("")
|
||||
|
||||
// Time picker settings
|
||||
if err := cfg.readTimePicker(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// unified storage config
|
||||
cfg.setUnifiedStorageConfig()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user