2 <my-global-icon iconName=
"download" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>My ownership changes
</ng-container>
7 [value]=
"videoChangeOwnerships" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
8 [first]=
"pagination.start" [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)"
10 <ng-template pTemplate=
"header">
12 <th style=
"width: 150px;" i18n
>Actions
</th>
13 <th style=
"width: 35%;" i18n
>Initiator
</th>
14 <th style=
"width: 65%;" i18n
>Video
</th>
15 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">
17 <p-sortIcon field=
"createdAt"></p-sortIcon>
19 <th style=
"width: 100px;" i18n
>Status
</th>
23 <ng-template pTemplate=
"body" let-videoChangeOwnership
>
25 <td class=
"action-cell">
26 <ng-container *
ngIf=
"videoChangeOwnership.status === 'WAITING'">
27 <my-button i18n-title
title=
"Accept" icon=
"tick" (click)=
"openAcceptModal(videoChangeOwnership)"></my-button>
28 <my-button i18n-title
title=
"Refuse" icon=
"cross" (click)=
"refuse(videoChangeOwnership)"></my-button>
32 <a [href]=
"videoChangeOwnership.initiatorAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
33 <div class=
"chip two-lines">
34 <my-actor-avatar [actor]=
"videoChangeOwnership.initiatorAccount" actorType=
"account" size=
"32"></my-actor-avatar>
36 {{ videoChangeOwnership.initiatorAccount.displayName }}
37 <span class=
"muted">{{ videoChangeOwnership.initiatorAccount.nameWithHost }}
</span>
44 <a [href]=
"videoChangeOwnership.video.url" class=
"video-table-video-link" [title]=
"videoChangeOwnership.video.name" target=
"_blank" rel=
"noopener noreferrer">
45 <div class=
"video-table-video">
46 <div class=
"video-table-video-image">
47 <img [src]=
"videoChangeOwnership.video.thumbnailPath">
49 <div class=
"video-table-video-text">
51 {{ videoChangeOwnership.video.name }}
53 <div class=
"muted">by {{ videoChangeOwnership.video.channel?.displayName }}
</div>
59 <td>{{ videoChangeOwnership.createdAt | date: 'short' }}
</td>
62 <span class=
"pt-badge"
63 [ngClass]=
"getStatusClass(videoChangeOwnership.status)">{{ videoChangeOwnership.status }}
</span>
68 <ng-template pTemplate=
"emptymessage">
71 <div class=
"no-results">
72 <ng-container i18n
>No ownership change request found.
</ng-container>
79 <my-accept-ownership #myAcceptOwnershipComponent (accepted)=
"accepted()"></my-accept-ownership>