@page "/roles"
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using TaskTrackingSystem.Shared.Models.Menu
@using TaskTrackingSystem.Shared.Models.User
@rendermode @(new InteractiveServerRenderMode(prerender: false))
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
@inject ApiClientService ApiClient
@inject IJSRuntime JS
@inject AuthenticationStateProvider AuthStateProvider
@inject MenuAuthorizationService MenuAuthorization
Manage roles, assign access and permissions, and control visibility.
| No. | Role | Description | Created | Actions |
|---|---|---|---|---|
| @((currentPage - 1) * pageSize + entry.index + 1) |
@role.Name
|
@(role.Description ?? "-") | @DisplayFormats.Date(role.CreatedAt) |
@if (canManageAccess)
{
}
@if (canEditRole)
{
}
@if (canDeleteRole)
{
}
|
@roleNameErrorMsg
}@roleError
Choose what this role can see and do on the right. It will be saved with the role.
}No access items found in database.
} else {Nothing else is available inside this page.
}No pages or permissions match your search.
} }Configure access and permissions
No access items found in database.
Nothing else is available inside this page.
}No pages or permissions match your search.
} }@accessSaveError
@accessSaveSuccess