From bcd9f81eff05ffd930c5d8175fb907d4d371432a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Oct 2017 17:31:11 +0200 Subject: Add channels to upload form --- client/src/app/shared/forms/form-validators/video.ts | 7 +++++++ client/src/app/shared/users/user.service.ts | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index 32b1f1c2e..213ab15db 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts @@ -28,6 +28,13 @@ export const VIDEO_LANGUAGE = { MESSAGES: {} } +export const VIDEO_CHANNEL = { + VALIDATORS: [ Validators.required ], + MESSAGES: { + 'required': 'Video channel is required.' + } +} + export const VIDEO_DESCRIPTION = { VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], MESSAGES: { diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts index 5c089d221..6d1017fc9 100644 --- a/client/src/app/shared/users/user.service.ts +++ b/client/src/app/shared/users/user.service.ts @@ -15,13 +15,6 @@ export class UserService { private restExtractor: RestExtractor ) {} - checkTokenValidity () { - const url = UserService.BASE_USERS_URL + 'me' - - // AuthHttp will redirect us to the login page if the token is not valid anymore - this.authHttp.get(url).subscribe() - } - changePassword (newPassword: string) { const url = UserService.BASE_USERS_URL + 'me' const body: UserUpdateMe = { -- cgit v1.2.3