-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathnav.component.html
More file actions
58 lines (58 loc) · 2.14 KB
/
Copy pathnav.component.html
File metadata and controls
58 lines (58 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<div class="nav">
<ul nz-menu nzMode="horizontal" nzTheme="dark" class="nav-main">
<li class="logo-item">
<a>
<img (click)="onJumpUi()" alt="" height="30px" id="left-logo" src="" />
</a>
</li>
<ng-container *ngFor="let v of navs">
<li
nz-submenu
nzMenuClassName="dark-dropdown"
*ngIf="v.children"
[nzTitle]="v.name | translate"
[ngClass]="{ dropdown: v.children }"
>
<ul [ngClass]="{ 'dropdown-content': true }">
<ng-container *ngIf="v.id === 'Tabs'">
<li nz-menu-item *ngIf="viewListSorted.length === 0">
<span>{{ 'NoTabs' | translate }}</span>
</li>
<ng-container *ngIf="viewListSorted.length > 0">
<li
*ngFor="let view of viewListSorted"
nz-menu-item
[ngClass]="{ disconnected: !view.connected, hidden: view.closed != false }"
[style.display]="view.name ? 'block' : 'none'"
>
<span [class.active]="view.active">
<a (click)="_viewSrv.activeView(view)" id="{{ 'tab' + view.id }}">
<i class="fa fa-circle flag"></i> {{ view.name }}
</a>
</span>
</li>
</ng-container>
</ng-container>
<ng-container *ngIf="v.id !== 'Tabs'">
<li nz-menu-item *ngFor="let vv of v.children" [ngClass]="{ disabled: vv.disable }">
<a *ngIf="vv.href" [routerLink]="[vv.href]">{{ vv.name | translate }}</a>
<a (click)="vv.click && vv.click()" *ngIf="vv.click && !vv.hide" id="{{ vv.id }}">
{{ vv.name | translate }}
</a>
</li>
</ng-container>
</ul>
</li>
<li nz-menu-item *ngIf="!v.children">
<a>{{ v.name | translate }}</a>
</li>
</ng-container>
</ul>
<div class="nav-right">
<!-- <div class="chat-trigger" (click)="openChat()">
<nz-icon nzType="open-a-i" nzTheme="outline" />
<span>Chat with AI</span>
</div> -->
<elements-user-profile></elements-user-profile>
</div>
</div>