Skip to content

Commit 2b83c5f

Browse files
authored
Merge pull request #3059 from codecrafters-io/refactor-remove-unused-feature-flag
refactor: remove unused feature flag for concepts index
2 parents 962994f + efc0779 commit 2b83c5f

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

app/components/header/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,9 @@ export default class Header extends Component<Signature> {
6262
get linksForAuthenticatedUser(): { text: string; route: string; type: 'route' | 'link' }[] {
6363
const links: { text: string; route: string; type: 'route' | 'link' }[] = [
6464
{ text: 'Catalog', route: 'catalog', type: 'route' },
65-
{ text: 'Badges', route: 'badges', type: 'route' },
6665
{ text: 'Roadmap', route: 'roadmap', type: 'route' },
6766
];
6867

69-
if (this.featureFlags.canSeeConceptsIndex) {
70-
links.push({ text: 'Concepts', route: 'concepts', type: 'route' });
71-
}
72-
73-
if (config.environment !== 'production') {
74-
links.push({ text: 'Demo', route: 'demo', type: 'route' });
75-
}
76-
7768
if (this.currentUser && this.currentUser.isAdmin) {
7869
links.push({ text: 'Admin', route: this.adminPanelLink, type: 'link' });
7970
}

app/services/feature-flags.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export default class FeatureFlagsService extends Service {
1414
this.notifiedFeatureFlags = new Set();
1515
}
1616

17-
get canSeeConceptsIndex(): boolean {
18-
return Boolean(this.currentUser && (this.currentUser.isStaff || this.currentUser.isConceptAuthor));
19-
}
20-
2117
get currentUser(): User | null {
2218
return this.authenticator.currentUser;
2319
}

0 commit comments

Comments
 (0)