Skip to content

Commit

Permalink
Remove NEW_DEVELOPER_TOOLS togglz
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Dec 14, 2023
1 parent 8bff47d commit c2c60e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/layout/user-menu/user-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class UserMenuComponent implements OnInit {
isAccountDelegate: boolean
restrictedDelegators: boolean
inboxUnread = 0
newDeveloperTools: boolean

constructor(
private _router: Router,
Expand All @@ -55,9 +54,6 @@ export class UserMenuComponent implements OnInit {
}

ngOnInit() {
this._togglz
.getStateOf('NEW_DEVELOPER_TOOLS')
.subscribe((value) => (this.newDeveloperTools = value))
this._togglz
.getStateOf('RESTRICTED_DELEGATORS')
.subscribe((value) => (this.restrictedDelegators = value))
Expand All @@ -80,7 +76,7 @@ export class UserMenuComponent implements OnInit {
this._router.navigate([ApplicationRoutes.trustedParties])
} else if (url === 'trusted-parties') {
this._router.navigate([ApplicationRoutes.trustedParties])
} else if (url === 'developer-tools' && this.newDeveloperTools) {
} else if (url === 'developer-tools') {
this._router.navigate([ApplicationRoutes.developerTools])
} else {
this.window.location.href = environment.BASE_URL + url
Expand Down

0 comments on commit c2c60e2

Please sign in to comment.