Skip to content

Commit

Permalink
Added embargo checkbox
Browse files Browse the repository at this point in the history
Signed-off-by: Amol Sontakke <[email protected]>
  • Loading branch information
amolsontakke3576 committed Dec 11, 2024
1 parent ce21e9a commit 0a85db5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,16 @@ import { AppSettings } from './config/app-settings';
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
title = 'easycla-contributor-console';
hasExpanded: boolean;
hasTermAccepted: boolean;
showDashboard: boolean;
links: any[];

onToggled() {
this.hasExpanded = !this.hasExpanded;
}

constructor(private storageService: StorageService) {
this.showDashboard = false;
this.hasTermAccepted = false;
}

ngOnInit() {
// Added for future use to not show the terms page if the user has already accepted the terms

// const hasAlreadyAcceptedTerms = JSON.parse(
// this.storageService.getItem(AppSettings.ACCEPTED_TERMS)
// );
// if(hasAlreadyAcceptedTerms) {
// this.showDashboard = true;
// this.hasTermAccepted = true;
// } else {
// this.showDashboard = false;
// this.hasTermAccepted = false;
// }

this.mountHeader();
this.hasExpanded = true;
}

onClickTermAccepted(event:boolean) {
Expand Down

0 comments on commit 0a85db5

Please sign in to comment.