mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Feature Highlights: move setting to a feature toggle (#44780)
* Add toggle * Use the toggle * Cleanup
This commit is contained in:
@@ -130,7 +130,7 @@ export class TeamPages extends PureComponent<Props, State> {
|
||||
case PageTypes.GroupSync:
|
||||
if (isSignedInUserTeamAdmin && isSyncEnabled) {
|
||||
return <TeamGroupSync />;
|
||||
} else if (config.featureHighlights.enabled) {
|
||||
} else if (config.featureToggles.featureHighlights) {
|
||||
return (
|
||||
<UpgradeBox
|
||||
text={
|
||||
|
||||
@@ -40,7 +40,7 @@ export function buildNavModel(team: Team): NavModelItem {
|
||||
|
||||
if (featureEnabled('teamsync')) {
|
||||
navModel.children!.push(teamGroupSync);
|
||||
} else if (config.featureHighlights.enabled) {
|
||||
} else if (config.featureToggles.featureHighlights) {
|
||||
navModel.children!.push({ ...teamGroupSync, tabSuffix: ProBadge });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user