mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Navigation: Fix Home logo always going to /login (#62658)
* only redirect to /login when anonymous access is disabled * only search for dashboards when not logged in if anon access is enabled * fix go logic * add unit tests
This commit is contained in:
@@ -200,6 +200,7 @@ export interface GrafanaConfig {
|
||||
/** @deprecated Use `theme2` instead. */
|
||||
theme: GrafanaTheme;
|
||||
theme2: GrafanaTheme2;
|
||||
anonymousEnabled: boolean;
|
||||
featureToggles: FeatureToggles;
|
||||
licenseInfo: LicenseInfo;
|
||||
http2Enabled: boolean;
|
||||
|
||||
@@ -85,6 +85,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
||||
theme: GrafanaTheme;
|
||||
theme2: GrafanaTheme2;
|
||||
featureToggles: FeatureToggles = {};
|
||||
anonymousEnabled = false;
|
||||
licenseInfo: LicenseInfo = {} as LicenseInfo;
|
||||
rendererAvailable = false;
|
||||
dashboardPreviews: {
|
||||
|
||||
Reference in New Issue
Block a user