add action to navigate to device add
parent
aeae76ba60
commit
21f48983c1
|
@ -32,7 +32,7 @@
|
|||
<span class="menu-item-text">Profile</span>
|
||||
</button>
|
||||
<mat-divider *ngIf="isAuthenticated" class="menu-divider"></mat-divider>
|
||||
<button *ngIf="isAuthenticated" mat-menu-item>
|
||||
<button *ngIf="isAuthenticated" mat-menu-item (click)="navigateToAddDevice()">
|
||||
<fa-icon [icon]="addDeviceIcon" class="menu-item-icon"></fa-icon>
|
||||
<span class="menu-item-text">Add Device</span>
|
||||
</button>
|
||||
|
|
|
@ -52,4 +52,8 @@ export class AccountMenuComponent implements OnInit {
|
|||
navigateToSkills() {
|
||||
window.location.href = this.mycroftUrls.account + '/skills';
|
||||
}
|
||||
|
||||
navigateToAddDevice() {
|
||||
window.location.href = this.mycroftUrls.account + '/devices/add';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue