1
|
<div class="navbar-wrapper container-fluid">
|
2
|
<div class="container">
|
3
|
<nav class="navbar navbar-expand-lg navbar-light">
|
4
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
5
|
<span class="navbar-toggler-icon"></span>
|
6
|
</button>
|
7
|
<div class="collapse navbar-collapse" id="navbarNav">
|
8
|
<div class="navbar-collapse collapse">
|
9
|
<ul class="navbar-nav left">
|
10
|
<li class="nav-item">
|
11
|
<a class="nav-link" [routerLink]="['/dashboard']"><h2>Dashboard</h2></a>
|
12
|
</li>
|
13
|
<li *ngIf="loggedUser?.userInfo?.rightsId == 0" class="nav-item">
|
14
|
<a class="nav-link" (click)="addUser()"><h2><i class="fas fa-user-plus"></i> Add user</h2></a>
|
15
|
</li>
|
16
|
<li *ngIf="loggedUser?.userInfo?.rightsId == 0 || loggedUser?.userInfo?.rightsId == 1" class="nav-item">
|
17
|
<a class="nav-link" (click)="insertUnitPopup()"><h2><i class="fas fa-folder-plus"></i> Add unit</h2></a>
|
18
|
</li>
|
19
|
</ul>
|
20
|
<a class="navbar-brand" href="/">
|
21
|
<h1>SensLog</h1>
|
22
|
<img class="navbar-logo" src="/assets/images/senslog-logo.svg" alt="Logo SensLog">
|
23
|
</a>
|
24
|
<ul class="navbar-nav right">
|
25
|
<li class="nav-item">
|
26
|
<h2 class="nav-link"><i class="fas fa-user"></i> <strong>{{loggedUser?.userInfo?.userName.toUpperCase()}}</strong></h2>
|
27
|
</li>
|
28
|
<li class="nav-item">
|
29
|
<a class='nav-link' [routerLink]="['/login']" (click)="logOut()"><h2><i class="fas fa-sign-out-alt"></i> Logout</h2></a>
|
30
|
</li>
|
31
|
</ul>
|
32
|
</div>
|
33
|
</div>
|
34
|
</nav>
|
35
|
</div>
|
36
|
</div>
|
37
|
|
38
|
<app-user-insert-popup *ngIf="showAddUserPopup" [(isVisible)]="showAddUserPopup"></app-user-insert-popup>
|
39
|
<app-unit-insert-popup [(isVisible)]="showInsertUnitPopup" [phenomenons]="phenomenons"></app-unit-insert-popup>
|