From 350e31d6b64e4973dfa5e9f7b46841cb09aeb1ad Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Nov 2017 17:31:26 +0100 Subject: Follow works --- .../src/app/+admin/friends/friend-list/friend-list.component.html | 8 ++++---- .../src/app/+admin/friends/friend-list/friend-list.component.ts | 2 +- client/src/app/+admin/friends/shared/friend.service.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client') diff --git a/client/src/app/+admin/friends/friend-list/friend-list.component.html b/client/src/app/+admin/friends/friend-list/friend-list.component.html index 7e92ced54..df5a570fd 100644 --- a/client/src/app/+admin/friends/friend-list/friend-list.component.html +++ b/client/src/app/+admin/friends/friend-list/friend-list.component.html @@ -4,12 +4,12 @@ - - + + - + diff --git a/client/src/app/+admin/friends/friend-list/friend-list.component.ts b/client/src/app/+admin/friends/friend-list/friend-list.component.ts index 0323ae96d..3fa8ef19f 100644 --- a/client/src/app/+admin/friends/friend-list/friend-list.component.ts +++ b/client/src/app/+admin/friends/friend-list/friend-list.component.ts @@ -17,7 +17,7 @@ export class FriendListComponent extends RestTable implements OnInit { friends: Pod[] = [] totalRecords = 0 rowsPerPage = 10 - sort: SortMeta = { field: 'id', order: 1 } + sort: SortMeta = { field: 'createdAt', order: 1 } pagination: RestPagination = { count: this.rowsPerPage, start: 0 } constructor ( diff --git a/client/src/app/+admin/friends/shared/friend.service.ts b/client/src/app/+admin/friends/shared/friend.service.ts index 083a2fce0..867656a53 100644 --- a/client/src/app/+admin/friends/shared/friend.service.ts +++ b/client/src/app/+admin/friends/shared/friend.service.ts @@ -23,7 +23,7 @@ export class FriendService { let params = new HttpParams() params = this.restService.addRestGetParams(params, pagination, sort) - return this.authHttp.get>(API_URL + '/followers', { params }) + return this.authHttp.get>(API_URL + '/api/v1/pods/followers', { params }) .map(res => this.restExtractor.convertResultListDateToHuman(res)) .catch(res => this.restExtractor.handleError(res)) } @@ -33,7 +33,7 @@ export class FriendService { hosts: notEmptyHosts } - return this.authHttp.post(API_URL + '/follow', body) + return this.authHttp.post(API_URL + '/api/v1/pods/follow', body) .map(this.restExtractor.extractDataBool) .catch(res => this.restExtractor.handleError(res)) } -- cgit v1.2.3