diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-08 10:49:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-08 10:49:26 +0200 |
commit | 8e11a1b37cb1d226acfe494f8821e5eb6e874dd0 (patch) | |
tree | c7444cdf17dddd9debacf66dbaa54e8ee04e4b5b /client/src/app/+my-account | |
parent | 14f83c68f11da3435940504fa4000193fb4943be (diff) | |
download | PeerTube-8e11a1b37cb1d226acfe494f8821e5eb6e874dd0.tar.gz PeerTube-8e11a1b37cb1d226acfe494f8821e5eb6e874dd0.tar.zst PeerTube-8e11a1b37cb1d226acfe494f8821e5eb6e874dd0.zip |
Fix sort in admin tables
Diffstat (limited to 'client/src/app/+my-account')
4 files changed, 17 insertions, 2 deletions
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 { | |||
29 | this.initialize() | 29 | this.initialize() |
30 | } | 30 | } |
31 | 31 | ||
32 | getIdentifier () { | ||
33 | return 'MyAccountBlocklistComponent' | ||
34 | } | ||
35 | |||
32 | unblockAccount (accountBlock: AccountBlock) { | 36 | unblockAccount (accountBlock: AccountBlock) { |
33 | const blockedAccount = accountBlock.blockedAccount | 37 | const blockedAccount = accountBlock.blockedAccount |
34 | 38 | ||
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 | |||
30 | this.initialize() | 30 | this.initialize() |
31 | } | 31 | } |
32 | 32 | ||
33 | getIdentifier () { | ||
34 | return 'MyAccountServerBlocklistComponent' | ||
35 | } | ||
36 | |||
33 | unblockServer (serverBlock: ServerBlock) { | 37 | unblockServer (serverBlock: ServerBlock) { |
34 | const host = serverBlock.blockedServer.host | 38 | const host = serverBlock.blockedServer.host |
35 | 39 | ||
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 { | |||
31 | this.initialize() | 31 | this.initialize() |
32 | } | 32 | } |
33 | 33 | ||
34 | getIdentifier () { | ||
35 | return 'MyAccountOwnershipComponent' | ||
36 | } | ||
37 | |||
34 | createByString (account: Account) { | 38 | createByString (account: Account) { |
35 | return Account.CREATE_BY_STRING(account.name, account.host) | 39 | return Account.CREATE_BY_STRING(account.name, account.host) |
36 | } | 40 | } |
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 | |||
20 | 20 | ||
21 | constructor ( | 21 | constructor ( |
22 | private notifier: Notifier, | 22 | private notifier: Notifier, |
23 | private videoImportService: VideoImportService, | 23 | private videoImportService: VideoImportService |
24 | private i18n: I18n | ||
25 | ) { | 24 | ) { |
26 | super() | 25 | super() |
27 | } | 26 | } |
@@ -30,6 +29,10 @@ export class MyAccountVideoImportsComponent extends RestTable implements OnInit | |||
30 | this.initialize() | 29 | this.initialize() |
31 | } | 30 | } |
32 | 31 | ||
32 | getIdentifier () { | ||
33 | return 'MyAccountVideoImportsComponent' | ||
34 | } | ||
35 | |||
33 | isVideoImportSuccess (videoImport: VideoImport) { | 36 | isVideoImportSuccess (videoImport: VideoImport) { |
34 | return videoImport.state.id === VideoImportState.SUCCESS | 37 | return videoImport.state.id === VideoImportState.SUCCESS |
35 | } | 38 | } |