X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Ffollows%2Fvideo-redundancies-list%2Fvideo-redundancies-list.component.ts;h=267a1f58efeecc838a12c8e6e9847912658f87df;hb=1d26d05fd9e919b94a57b7c09cda101fde664d5f;hp=4b41d1d864ecaff57a867a9e2328e8ca57aca19c;hpb=b764380ac23f4e9d4677d08acdc3474c2931a16d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts index 4b41d1d86..267a1f58e 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts @@ -13,14 +13,13 @@ import { RedundancyService } from '@app/shared/video/redundancy.service' @Component({ selector: 'my-video-redundancies-list', templateUrl: './video-redundancies-list.component.html', - styleUrls: [ './video-redundancies-list.component.scss' ] + styleUrls: [ '../follows.component.scss', './video-redundancies-list.component.scss' ] }) export class VideoRedundanciesListComponent extends RestTable implements OnInit { private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type' videoRedundancies: VideoRedundancy[] = [] totalRecords = 0 - rowsPerPage = 10 sort: SortMeta = { field: 'name', order: 1 } pagination: RestPagination = { count: this.rowsPerPage, start: 0 } @@ -44,6 +43,10 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit this.bytesPipe = new BytesPipe() } + getIdentifier () { + return 'VideoRedundanciesListComponent' + } + ngOnInit () { this.loadSelectLocalStorage() @@ -61,6 +64,12 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit }) } + getColspan () { + if (this.isDisplayingRemoteVideos()) return 5 + + return 4 + } + isDisplayingRemoteVideos () { return this.displayType === 'remote-videos' }