mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
made nav into a toolbar
This commit is contained in:
5
src/app/layout/nav.component.html
Normal file
5
src/app/layout/nav.component.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<ng-container *ngFor="let item of items">
|
||||
<a [routerLink]="item.link" class="btn primary" routerLinkActive="active" [title]="item.label">
|
||||
<i class="fa" [ngClass]="item.icon"></i>{{ item.label }}
|
||||
</a>
|
||||
</ng-container>
|
||||
20
src/app/layout/nav.component.ts
Normal file
20
src/app/layout/nav.component.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-nav',
|
||||
templateUrl: 'nav.component.html',
|
||||
})
|
||||
export class NavComponent {
|
||||
items: any[] = [
|
||||
{
|
||||
link: '/vault',
|
||||
icon: 'fa-lock',
|
||||
label: 'My Vault',
|
||||
},
|
||||
{
|
||||
link: '/send',
|
||||
icon: 'fa-paper-plane',
|
||||
label: 'Send',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user