aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-videos/account-videos.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-06 15:07:17 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-06 15:07:17 +0100
commitce0e281d46a7b574dcccb47958743656532bd312 (patch)
treeb2d26aef176f39ebdf37e5e7c28d6f6fb905bf10 /client/src/app/account/account-videos/account-videos.component.html
parent7d763d97497df1bbf7a01f61aa916d99a1338a33 (diff)
downloadPeerTube-ce0e281d46a7b574dcccb47958743656532bd312.tar.gz
PeerTube-ce0e281d46a7b574dcccb47958743656532bd312.tar.zst
PeerTube-ce0e281d46a7b574dcccb47958743656532bd312.zip
Client bulk delete
Diffstat (limited to 'client/src/app/account/account-videos/account-videos.component.html')
-rw-r--r--client/src/app/account/account-videos/account-videos.component.html36
1 files changed, 27 insertions, 9 deletions
diff --git a/client/src/app/account/account-videos/account-videos.component.html b/client/src/app/account/account-videos/account-videos.component.html
index 30db69429..030c2f19c 100644
--- a/client/src/app/account/account-videos/account-videos.component.html
+++ b/client/src/app/account/account-videos/account-videos.component.html
@@ -5,7 +5,9 @@
5 (scrolled)="onNearOfBottom()" 5 (scrolled)="onNearOfBottom()"
6 (scrolledUp)="onNearOfTop()" 6 (scrolledUp)="onNearOfTop()"
7> 7>
8 <div class="video" *ngFor="let video of videos"> 8 <div class="video" *ngFor="let video of videos; let i = index">
9 <input type="checkbox" [(ngModel)]="checkedVideos[video.id]" />
10
9 <my-video-thumbnail [video]="video"></my-video-thumbnail> 11 <my-video-thumbnail [video]="video"></my-video-thumbnail>
10 12
11 <div class="video-info"> 13 <div class="video-info">
@@ -13,14 +15,30 @@
13 <span class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span> 15 <span class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
14 </div> 16 </div>
15 17
16 <a class="action-button action-button-delete" (click)="deleteVideo(video)"> 18 <!-- Display only once -->
17 <span class="icon icon-delete"></span> 19 <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0">
18 Delete 20 <div class="action-selection-mode-child">
19 </a> 21 <span class="action-button" (click)="abortSelectionMode()">
22 Cancel
23 </span>
24
25 <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
26 <span class="icon icon-delete-white"></span>
27 Delete
28 </span>
29 </div>
30 </div>
31
32 <ng-template [ngIf]="isInSelectionMode() === false">
33 <span class="action-button action-button-delete" (click)="deleteVideo(video)">
34 <span class="icon icon-delete-grey"></span>
35 Delete
36 </span>
20 37
21 <a class="action-button" [routerLink]="[ '/videos', video.id, '/edit' ]"> 38 <a class="action-button" [routerLink]="[ '/videos', 'edit', video.uuid ]">
22 <span class="icon icon-edit"></span> 39 <span class="icon icon-edit"></span>
23 Edit 40 Edit
24 </a> 41 </a>
42 </ng-template>
25 </div> 43 </div>
26</div> 44</div>