Skip to content

Commit

Permalink
Merge pull request #38 from UdL-EPS-SoftArch/add-apartment-navbar
Browse files Browse the repository at this point in the history
feat: add apartment to navbar
  • Loading branch information
rogargon authored Dec 12, 2024
2 parents 0ac0588 + 9527bff commit ae7bc83
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
<li class="nav-item" [routerLinkActive]="'active'" [routerLinkActiveOptions]="{ exact: true }">
<a class="nav-link" [routerLink]="['/about']">About</a>
</li>

<!--LIST APARTMENT-->
<li class="nav-item" *ngIf="isRole('user') || isRole('owner')" [routerLinkActive]="'active'" [routerLinkActiveOptions]="{ exact: true }">
<a class="nav-link" [routerLink]="['/apartments']">Apartments list</a>
</li>

<!--CREATE APARTMENT-->
<li class="nav-item" *ngIf="isRole('owner')" [routerLinkActive]="'active'" [routerLinkActiveOptions]="{ exact: true }">
<a class="nav-link" [routerLink]="['/apartment/create']">Create apartment</a>
</li>

<li class="nav-item" *ngIf="isRole('user')" ngbDropdown>
<a class="nav-link dropdown-toggle" id="playerDropdown" role="button"
aria-haspopup="true" aria-expanded="false" ngbDropdownToggle>Users</a>
Expand Down

0 comments on commit ae7bc83

Please sign in to comment.