From 4610bc5b12eaa4bfd64fe3fd70c65e5b722aa22d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Nov 2017 17:16:42 +0100 Subject: ApplicationFollow -> SeverFollow --- client/src/app/+admin/follows/follows.routes.ts | 2 +- client/src/app/+admin/follows/shared/follow.service.ts | 2 +- client/src/app/core/menu/menu-admin.component.html | 2 +- client/src/app/core/menu/menu-admin.component.ts | 4 ++-- client/src/app/core/menu/menu.component.ts | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client') diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts index b7d44f75b..e84c79e82 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts @@ -13,7 +13,7 @@ export const FollowsRoutes: Routes = [ component: FollowsComponent, canActivate: [ UserRightGuard ], data: { - userRight: UserRight.MANAGE_APPLICATION_FOLLOW + userRight: UserRight.MANAGE_SERVER_FOLLOW }, children: [ { diff --git a/client/src/app/+admin/follows/shared/follow.service.ts b/client/src/app/+admin/follows/shared/follow.service.ts index 3dc91dfca..d64361ee3 100644 --- a/client/src/app/+admin/follows/shared/follow.service.ts +++ b/client/src/app/+admin/follows/shared/follow.service.ts @@ -11,7 +11,7 @@ import { AccountFollow, ResultList } from '../../../../../../shared' @Injectable() export class FollowService { - private static BASE_APPLICATION_URL = API_URL + '/api/v1/application' + private static BASE_APPLICATION_URL = API_URL + '/api/v1/server' constructor ( private authHttp: HttpClient, diff --git a/client/src/app/core/menu/menu-admin.component.html b/client/src/app/core/menu/menu-admin.component.html index 99ee287c5..eb2d0d69c 100644 --- a/client/src/app/core/menu/menu-admin.component.html +++ b/client/src/app/core/menu/menu-admin.component.html @@ -5,7 +5,7 @@ List users - + Manage follows diff --git a/client/src/app/core/menu/menu-admin.component.ts b/client/src/app/core/menu/menu-admin.component.ts index 88a654d1f..466da1aee 100644 --- a/client/src/app/core/menu/menu-admin.component.ts +++ b/client/src/app/core/menu/menu-admin.component.ts @@ -15,8 +15,8 @@ export class MenuAdminComponent { return this.auth.getUser().hasRight(UserRight.MANAGE_USERS) } - hasApplicationFollowRight () { - return this.auth.getUser().hasRight(UserRight.MANAGE_APPLICATION_FOLLOW) + hasServerFollowRight () { + return this.auth.getUser().hasRight(UserRight.MANAGE_SERVER_FOLLOW) } hasVideoAbusesRight () { diff --git a/client/src/app/core/menu/menu.component.ts b/client/src/app/core/menu/menu.component.ts index 872d29819..d2bd71534 100644 --- a/client/src/app/core/menu/menu.component.ts +++ b/client/src/app/core/menu/menu.component.ts @@ -16,7 +16,7 @@ export class MenuComponent implements OnInit { private routesPerRight = { [UserRight.MANAGE_USERS]: '/admin/users', - [UserRight.MANAGE_APPLICATION_FOLLOW]: '/admin/friends', + [UserRight.MANAGE_SERVER_FOLLOW]: '/admin/friends', [UserRight.MANAGE_VIDEO_ABUSES]: '/admin/video-abuses', [UserRight.MANAGE_VIDEO_BLACKLIST]: '/admin/video-blacklist' } @@ -58,7 +58,7 @@ export class MenuComponent implements OnInit { const adminRights = [ UserRight.MANAGE_USERS, - UserRight.MANAGE_APPLICATION_FOLLOW, + UserRight.MANAGE_SERVER_FOLLOW, UserRight.MANAGE_VIDEO_ABUSES, UserRight.MANAGE_VIDEO_BLACKLIST ] -- cgit v1.2.3