2 <my-global-icon iconName=
"download" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>My ownership changes
</ng-container>
7 [value]=
"videoChangeOwnerships"
9 [paginator]=
"totalRecords > 0"
10 [totalRecords]=
"totalRecords"
12 [sortField]=
"sort.field"
13 [sortOrder]=
"sort.order"
14 (onLazyLoad)=
"loadLazy($event)"
16 <ng-template pTemplate=
"header">
18 <th style=
"width: 150px;" i18n
>Actions
</th>
19 <th style=
"width: 35%;" i18n
>Initiator
</th>
20 <th style=
"width: 65%;" i18n
>Video
</th>
21 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">
23 <p-sortIcon field=
"createdAt"></p-sortIcon>
25 <th style=
"width: 100px;" i18n
>Status
</th>
29 <ng-template pTemplate=
"body" let-videoChangeOwnership
>
31 <td class=
"action-cell">
32 <ng-container *
ngIf=
"videoChangeOwnership.status === 'WAITING'">
33 <my-button i18n-title
title=
"Accept" icon=
"tick" (click)=
"openAcceptModal(videoChangeOwnership)"></my-button>
34 <my-button i18n-title
title=
"Refuse" icon=
"cross" (click)=
"refuse(videoChangeOwnership)"></my-button>
38 <a [href]=
"videoChangeOwnership.initiatorAccount.url" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
39 <div class=
"chip two-lines">
40 <my-actor-avatar [account]=
"videoChangeOwnership.initiatorAccount"></my-actor-avatar>
42 {{ videoChangeOwnership.initiatorAccount.displayName }}
43 <span class=
"text-muted">{{ videoChangeOwnership.initiatorAccount.nameWithHost }}
</span>
50 <a [href]=
"videoChangeOwnership.video.url" class=
"video-table-video-link" [title]=
"videoChangeOwnership.video.name" target=
"_blank" rel=
"noopener noreferrer">
51 <div class=
"video-table-video">
52 <div class=
"video-table-video-image">
53 <img [src]=
"videoChangeOwnership.video.thumbnailPath">
55 <div class=
"video-table-video-text">
57 {{ videoChangeOwnership.video.name }}
59 <div class=
"text-muted">by {{ videoChangeOwnership.video.channel?.displayName }}
</div>
65 <td>{{ videoChangeOwnership.createdAt | date: 'short' }}
</td>
69 [ngClass]=
"getStatusClass(videoChangeOwnership.status)">{{ videoChangeOwnership.status }}
</span>
74 <ng-template pTemplate=
"emptymessage">
77 <div class=
"no-results">
78 <ng-container i18n
>No ownership change request found.
</ng-container>
85 <my-accept-ownership #myAcceptOwnershipComponent (accepted)=
"accepted()"></my-accept-ownership>