@inherits LayoutComponentBase @using TIAMWebApp.Shared.Application.Interfaces @using TIAMWebApp.Shared.Application.Models.ClientSide; @inject IUserDataService UserDataService; @inject IJSRuntime jsRuntime
@if (Setting.UserBasicDetails != null) {
}
@{ if(isUserLoggedIn) { } } @Body
@code { bool isUserLoggedIn; int userType = 0; int currentUserRole = 249; //add a new dictionary for the role types protected override async Task OnInitializedAsync() { var user = await UserDataService.IsLoggedInAsync(); isUserLoggedIn = user.IsLoggedIn; } protected override void OnAfterRender(bool isFirst) { } }