From 8e11a1b37cb1d226acfe494f8821e5eb6e874dd0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Apr 2020 10:49:26 +0200 Subject: Fix sort in admin tables --- .../my-account-blocklist/my-account-blocklist.component.ts | 4 ++++ .../my-account-blocklist/my-account-server-blocklist.component.ts | 4 ++++ .../my-account-ownership/my-account-ownership.component.ts | 4 ++++ .../my-account-video-imports/my-account-video-imports.component.ts | 7 +++++-- 4 files changed, 17 insertions(+), 2 deletions(-) (limited to 'client/src/app/+my-account') diff --git a/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts b/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts index 15b58e45c..d8e9fc514 100644 --- a/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts +++ b/client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts @@ -29,6 +29,10 @@ export class MyAccountBlocklistComponent extends RestTable implements OnInit { this.initialize() } + getIdentifier () { + return 'MyAccountBlocklistComponent' + } + unblockAccount (accountBlock: AccountBlock) { const blockedAccount = accountBlock.blockedAccount diff --git a/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts b/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts index e735d4ab7..9049dc69c 100644 --- a/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts +++ b/client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts @@ -30,6 +30,10 @@ export class MyAccountServerBlocklistComponent extends RestTable implements OnIn this.initialize() } + getIdentifier () { + return 'MyAccountServerBlocklistComponent' + } + unblockServer (serverBlock: ServerBlock) { const host = serverBlock.blockedServer.host diff --git a/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts b/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts index cd8065800..324641be1 100644 --- a/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts +++ b/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts @@ -31,6 +31,10 @@ export class MyAccountOwnershipComponent extends RestTable implements OnInit { this.initialize() } + getIdentifier () { + return 'MyAccountOwnershipComponent' + } + createByString (account: Account) { return Account.CREATE_BY_STRING(account.name, account.host) } 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 74c42bb4f..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 @@ -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 } -- cgit v1.2.3