mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: clean up Enterprise feature toggles (#28264)
This commit is contained in:
parent
f8e0adb168
commit
c3336e6ecf
@ -41,8 +41,6 @@ export interface FeatureToggles {
|
|||||||
* Available only in Grafana Enterprise
|
* Available only in Grafana Enterprise
|
||||||
*/
|
*/
|
||||||
meta: boolean;
|
meta: boolean;
|
||||||
datasourceInsights: boolean;
|
|
||||||
reportGrid: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,8 +55,6 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
|||||||
live: false,
|
live: false,
|
||||||
expressions: false,
|
expressions: false,
|
||||||
meta: false,
|
meta: false,
|
||||||
datasourceInsights: false,
|
|
||||||
reportGrid: false,
|
|
||||||
ngalert: false,
|
ngalert: false,
|
||||||
};
|
};
|
||||||
licenseInfo: LicenseInfo = {} as LicenseInfo;
|
licenseInfo: LicenseInfo = {} as LicenseInfo;
|
||||||
|
@ -54,7 +54,6 @@ export function buildNavModel(dataSource: DataSourceSettings, plugin: GenericDat
|
|||||||
url: `datasources/edit/${dataSource.id}/permissions`,
|
url: `datasources/edit/${dataSource.id}/permissions`,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (config.featureToggles.datasourceInsights) {
|
|
||||||
navModel.children!.push({
|
navModel.children!.push({
|
||||||
active: false,
|
active: false,
|
||||||
icon: 'info-circle',
|
icon: 'info-circle',
|
||||||
@ -63,7 +62,6 @@ export function buildNavModel(dataSource: DataSourceSettings, plugin: GenericDat
|
|||||||
url: `datasources/edit/${dataSource.id}/insights`,
|
url: `datasources/edit/${dataSource.id}/insights`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return navModel;
|
return navModel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user