1 <h1 class="sr-only" i18n>Ownership changes</h1>
3 [value]="videoChangeOwnerships"
5 [paginator]="totalRecords > 0"
6 [totalRecords]="totalRecords"
8 [sortField]="sort.field"
9 [sortOrder]="sort.order"
10 (onLazyLoad)="loadLazy($event)"
12 <ng-template pTemplate="header">
14 <th i18n>Initiator</th>
16 <th i18n pSortableColumn="createdAt">
18 <p-sortIcon field="createdAt"></p-sortIcon>
25 <ng-template pTemplate="body" let-videoChangeOwnership>
28 <a [href]="videoChangeOwnership.initiatorAccount.url" i18n-title title="Go to the account"
29 target="_blank" rel="noopener noreferrer">
30 {{ createByString(videoChangeOwnership.initiatorAccount) }}
34 <a [href]="videoChangeOwnership.video.url" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
35 {{ videoChangeOwnership.video.name }}
38 <td>{{ videoChangeOwnership.createdAt }}</td>
39 <td i18n>{{ videoChangeOwnership.status }}</td>
40 <td class="action-cell">
41 <ng-container *ngIf="videoChangeOwnership.status === 'WAITING'">
42 <my-button i18n-label label="Accept" icon="tick" (click)="openAcceptModal(videoChangeOwnership)"></my-button>
43 <my-button i18n-label label="Refuse" icon="cross" (click)="refuse(videoChangeOwnership)"></my-button>
50 <my-account-accept-ownership #myAccountAcceptOwnershipComponent (accepted)="accepted()"></my-account-accept-ownership>