X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account-video-imports%2Fmy-account-video-imports.component.ts;h=9281f978941671c8bf9e4470460541a2e48c9499;hb=92e4ca0d95f61994626233866c57b5b078ef9c5a;hp=21a10c8ffc7f61a8e86194846d838a65131462cb;hpb=73471b1a52f242e86364ffb077ea6cadb3b07ae2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.ts b/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.ts index 21a10c8ff..9281f9789 100644 --- a/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.ts +++ b/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.ts @@ -1,6 +1,6 @@ import { Component, OnInit } from '@angular/core' import { RestPagination, RestTable } from '@app/shared' -import { SortMeta } from 'primeng/components/common/sortmeta' +import { SortMeta } from 'primeng/api' import { Notifier } from '@app/core' import { I18n } from '@ngx-translate/i18n-polyfill' import { VideoImport, VideoImportState } from '../../../../../shared/models/videos' @@ -20,8 +20,7 @@ export class MyAccountVideoImportsComponent extends RestTable implements OnInit constructor ( private notifier: Notifier, - private videoImportService: VideoImportService, - private i18n: I18n + private videoImportService: VideoImportService ) { super() } @@ -30,6 +29,10 @@ export class MyAccountVideoImportsComponent extends RestTable implements OnInit this.initialize() } + getIdentifier () { + return 'MyAccountVideoImportsComponent' + } + isVideoImportSuccess (videoImport: VideoImport) { return videoImport.state.id === VideoImportState.SUCCESS }