Skip to content

Commit

Permalink
Merge pull request #1949 from ORCID/RemoveDE_PL_TRFromSelector
Browse files Browse the repository at this point in the history
Remove new languages from the selector until the files are ready
  • Loading branch information
leomendoza123 authored May 9, 2023
2 parents 0b32f5d + f871e9e commit a4448aa
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
} from './analytics-utils'
import { ERROR_REPORT } from './errors'
import { ErrorHandlerService } from './core/error-handler/error-handler.service'
import { TogglzService } from 'src/app/core/togglz/togglz.service'
import { environment } from 'src/environments/environment'

@Component({
Expand Down Expand Up @@ -48,8 +47,7 @@ export class AppComponent {
_googleTagManagerService: GoogleTagManagerService,
_zendesk: ZendeskService,
private _userService: UserService,
private _errorHandler: ErrorHandlerService,
private _togglz: TogglzService,
private _errorHandler: ErrorHandlerService,
@Inject(WINDOW) private _window: Window
) {
_platformInfo
Expand Down Expand Up @@ -115,15 +113,7 @@ export class AppComponent {
}
})
}
})

_togglz.getStateOf('ENABLE_DE_PL_TR').subscribe((togglz_enabled) => {
if (togglz_enabled) {
environment.LANGUAGE_MENU_OPTIONS['de'] = 'Deutsch'
environment.LANGUAGE_MENU_OPTIONS['pl'] = 'Polski'
environment.LANGUAGE_MENU_OPTIONS['tr'] = 'Türkçe'
}
})
})
}
showHeadlessOnOauthPage(currentRoute: string): boolean {
if (currentRoute) {
Expand Down

0 comments on commit a4448aa

Please sign in to comment.