Skip to content

Commit

Permalink
Added my projects button
Browse files Browse the repository at this point in the history
  • Loading branch information
macfleury-2000 committed Jun 14, 2021
1 parent 65040d0 commit 48042bf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.901.13",
"@angular/cli": "^9.1.13",
"@angular/cli": "^9.1.15",
"@angular/compiler-cli": "^9.1.13",
"@angular/language-service": "^9.1.13",
"@types/jasmine": "^3.6.3",
Expand Down
1 change: 1 addition & 0 deletions src/app/components/app-layout/app-layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
</button>
<ul *dropdownMenu aria-labelledby="button-basic" class="dropdown-menu" id="dropdown-basic" role="menu">
<li role="menuitem"><a (click)="onClickSignout()" class="dropdown-item" routerLinkActive="active">Sign Out</a></li>
<li role="menuitem"> <a class="dropdown-item" routerLink="user/projects" routerLinkActive="active">My Projects</a></li>
</ul>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/app/components/app-layout/app-layout.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
below each other
*/
.profile-dropdown {
z-index: 9;
@include media-breakpoint-down(sm) {
flex-direction: column;
}
Expand Down
5 changes: 5 additions & 0 deletions src/app/components/app-layout/app-layout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ export class AppLayoutComponent implements OnInit {
this.displayBetaBanner = true;
}


public viewUserProjects() {
this.router.navigate(['user/projects']);
}

/**
* Method which triggers when the user clicks on the burger menu in the header.
* Toggles the navbar visibility
Expand Down

0 comments on commit 48042bf

Please sign in to comment.