media page role panels finished
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
<div class="panel panel-padding-regular panel-radius-regular panel-background-regular @(Class)">
|
||||||
|
<div class="vstack gap-3">
|
||||||
|
<span class="panel-text-title">Actors</span>
|
||||||
|
<RoleListComponent Id="@(Id)"
|
||||||
|
TRole="WatchIt.Common.Model.Roles.ActorRoleResponse"
|
||||||
|
TQuery="WatchIt.Common.Model.Roles.ActorRoleMediaQueryParameters"
|
||||||
|
GetRolesAction="MediaWebAPIService.GetMediaAllActorRoles"
|
||||||
|
AdditionalTextSource="@(data => data.Name)"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.AspNetCore.Components;
|
||||||
|
using WatchIt.Website.Services.WebAPI.Media;
|
||||||
|
|
||||||
|
namespace WatchIt.Website.Components.MediaPage;
|
||||||
|
|
||||||
|
public partial class ActorRolesPanelComponent : ComponentBase
|
||||||
|
{
|
||||||
|
#region SERVICES
|
||||||
|
|
||||||
|
[Inject] private IMediaWebAPIService MediaWebAPIService { get; set; } = default!;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region PARAMETERS
|
||||||
|
|
||||||
|
[Parameter] public string Class { get; set; } = string.Empty;
|
||||||
|
[Parameter] public required long Id { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user