diff options
Diffstat (limited to 'client/src/app/+my-account/my-account-ownership')
-rw-r--r-- | client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts | 24 |
1 files changed, 12 insertions, 12 deletions
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 520278671..0b51ac13c 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 | |||
@@ -34,18 +34,6 @@ export class MyAccountOwnershipComponent extends RestTable implements OnInit { | |||
34 | this.initialize() | 34 | this.initialize() |
35 | } | 35 | } |
36 | 36 | ||
37 | protected loadData () { | ||
38 | return this.videoOwnershipService.getOwnershipChanges(this.pagination, this.sort) | ||
39 | .subscribe( | ||
40 | resultList => { | ||
41 | this.videoChangeOwnerships = resultList.data | ||
42 | this.totalRecords = resultList.total | ||
43 | }, | ||
44 | |||
45 | err => this.notificationsService.error(this.i18n('Error'), err.message) | ||
46 | ) | ||
47 | } | ||
48 | |||
49 | createByString (account: Account) { | 37 | createByString (account: Account) { |
50 | return Account.CREATE_BY_STRING(account.name, account.host) | 38 | return Account.CREATE_BY_STRING(account.name, account.host) |
51 | } | 39 | } |
@@ -65,4 +53,16 @@ export class MyAccountOwnershipComponent extends RestTable implements OnInit { | |||
65 | err => this.notificationsService.error(this.i18n('Error'), err.message) | 53 | err => this.notificationsService.error(this.i18n('Error'), err.message) |
66 | ) | 54 | ) |
67 | } | 55 | } |
56 | |||
57 | protected loadData () { | ||
58 | return this.videoOwnershipService.getOwnershipChanges(this.pagination, this.sort) | ||
59 | .subscribe( | ||
60 | resultList => { | ||
61 | this.videoChangeOwnerships = resultList.data | ||
62 | this.totalRecords = resultList.total | ||
63 | }, | ||
64 | |||
65 | err => this.notificationsService.error(this.i18n('Error'), err.message) | ||
66 | ) | ||
67 | } | ||
68 | } | 68 | } |