From fd45e8f43c2638478599ca75632518054461da85 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 11:52:52 +0100 Subject: Add video privacy setting --- client/src/app/shared/forms/form-validators/video.ts | 7 +++++++ client/src/app/shared/search/search-field.type.ts | 2 +- client/src/app/shared/search/search.component.html | 4 ++-- client/src/app/shared/search/search.component.ts | 17 ++++++++--------- 4 files changed, 18 insertions(+), 12 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 434773501..65f11f5da 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts @@ -9,6 +9,13 @@ export const VIDEO_NAME = { } } +export const VIDEO_PRIVACY = { + VALIDATORS: [ Validators.required ], + MESSAGES: { + 'required': 'Video privacy is required.' + } +} + export const VIDEO_CATEGORY = { VALIDATORS: [ Validators.required ], MESSAGES: { diff --git a/client/src/app/shared/search/search-field.type.ts b/client/src/app/shared/search/search-field.type.ts index 63557898a..ff0bb8de1 100644 --- a/client/src/app/shared/search/search-field.type.ts +++ b/client/src/app/shared/search/search-field.type.ts @@ -1 +1 @@ -export type SearchField = 'name' | 'author' | 'host' | 'magnetUri' | 'tags' +export type SearchField = 'name' | 'author' | 'host' | 'tags' diff --git a/client/src/app/shared/search/search.component.html b/client/src/app/shared/search/search.component.html index c6c6ff6a8..0302447d0 100644 --- a/client/src/app/shared/search/search.component.html +++ b/client/src/app/shared/search/search.component.html @@ -6,12 +6,12 @@