aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
blob: b07b9c1a6cbb77b7fc02be661d64df2458a6cd63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="videos-header">
  <h4 i18n>Videos <span class="badge badge-secondary">{{ pagination.totalItems }}</span></h4>

  <input type="text" placeholder="Search your videos" i18n-placeholder [(ngModel)]="videosSearch" (ngModelChange)="onVideosSearchChanged()" />

  <div class="fake-element"></div>
</div>

<my-videos-selection
  [pagination]="pagination"
  [(selection)]="selection"
  [(videosModel)]="videos"
  [miniatureDisplayOptions]="miniatureDisplayOptions"
  [titlePage]="titlePage"
  [getVideosObservableFunction]="getVideosObservableFunction"
  #videosSelection
>
  <ng-template ptTemplate="globalButtons">
    <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
      <my-global-icon iconName="delete"></my-global-icon>
      <ng-container i18n>Delete</ng-container>
    </span>
  </ng-template>

  <ng-template ptTemplate="rowButtons" let-video>
    <my-delete-button (click)="deleteVideo(video)"></my-delete-button>

    <my-edit-button [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button>

    <my-button i18n-label label="Change ownership"
               className="action-button-change-ownership grey-button"
               icon="im-with-her"
               (click)="changeOwnership($event, video)"
    ></my-button>
  </ng-template>
</my-videos-selection>


<my-video-change-ownership #videoChangeOwnershipModal></my-video-change-ownership>