11import Component from '@glimmer/component' ;
2- import { action } from '@ember/object' ;
3- import { tracked } from '@glimmer/tracking' ;
4- import { inject as service } from '@ember/service' ;
5- import { htmlSafe } from '@ember/template' ;
6- import { next } from '@ember/runloop' ;
2+ import PromotionalDiscountModel from 'codecrafters-frontend/models/promotional-discount' ;
73import logoImage from '/assets/images/logo/logomark-color.svg' ;
8- import config from 'codecrafters-frontend/config/environment' ;
94import type AuthenticatorService from 'codecrafters-frontend/services/authenticator' ;
105import type ContainerWidthService from 'codecrafters-frontend/services/container-width' ;
116import type FeatureFlagsService from 'codecrafters-frontend/services/feature-flags' ;
127import type RouterService from '@ember/routing/router-service' ;
138import type VersionTrackerService from 'codecrafters-frontend/services/version-tracker' ;
14- import PromotionalDiscountModel from 'codecrafters-frontend/models/promotional-discount' ;
159import type { SafeString } from '@ember/template/-private/handlebars' ;
10+ import { action } from '@ember/object' ;
11+ import { htmlSafe } from '@ember/template' ;
12+ import { inject as service } from '@ember/service' ;
13+ import { next } from '@ember/runloop' ;
14+ import { tracked } from '@glimmer/tracking' ;
1615
1716interface Signature {
1817 Element : HTMLDivElement ;
@@ -35,10 +34,6 @@ export default class Header extends Component<Signature> {
3534 return this . currentUser ?. activeDiscountForYearlyPlan || null ;
3635 }
3736
38- get adminPanelLink ( ) {
39- return `${ config . x . backendUrl } /admin` ;
40- }
41-
4237 get currentUser ( ) {
4338 return this . authenticator . currentUser ;
4439 }
@@ -65,10 +60,6 @@ export default class Header extends Component<Signature> {
6560 { text : 'Roadmap' , route : 'roadmap' , type : 'route' } ,
6661 ] ;
6762
68- if ( this . currentUser && this . currentUser . isAdmin ) {
69- links . push ( { text : 'Admin' , route : this . adminPanelLink , type : 'link' } ) ;
70- }
71-
7263 return links ;
7364 }
7465
0 commit comments