diff --git a/src/AzureIoTHub.Portal/Client/Shared/NavMenu.razor b/src/AzureIoTHub.Portal/Client/Shared/NavMenu.razor index 52807f4a9..78470f78b 100644 --- a/src/AzureIoTHub.Portal/Client/Shared/NavMenu.razor +++ b/src/AzureIoTHub.Portal/Client/Shared/NavMenu.razor @@ -1,11 +1,20 @@ @using AzureIoTHub.Portal.Shared.Security; @using Microsoft.AspNetCore.Components.Authorization +@inject NavigationManager navigationManager Devices - List + + Device List + + + + + Device Models + + IoT Edge @@ -17,10 +26,7 @@ LoRaWAN Management Concentrators } - - Device Models - List - + Settings Device Tags @@ -31,4 +37,8 @@ @code { [Parameter] public bool activateLoRaFeature { get; set; } + + private void AddDevice() => navigationManager.NavigateTo("devices/new"); + private void AddDeviceModel() => navigationManager.NavigateTo("/device-models/new"); + } \ No newline at end of file