aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-25 17:31:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 09:11:38 +0200
commitbcd9f81eff05ffd930c5d8175fb907d4d371432a (patch)
tree071c9bff7135ae968f329623b77a4835e1afcb59 /client/src/app/shared
parentd412e80e5f748f92118541a5334c14ebd4a90881 (diff)
downloadPeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.tar.gz
PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.tar.zst
PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.zip
Add channels to upload form
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/forms/form-validators/video.ts7
-rw-r--r--client/src/app/shared/users/user.service.ts7
2 files changed, 7 insertions, 7 deletions
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 = {
28 MESSAGES: {} 28 MESSAGES: {}
29} 29}
30 30
31export const VIDEO_CHANNEL = {
32 VALIDATORS: [ Validators.required ],
33 MESSAGES: {
34 'required': 'Video channel is required.'
35 }
36}
37
31export const VIDEO_DESCRIPTION = { 38export const VIDEO_DESCRIPTION = {
32 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], 39 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ],
33 MESSAGES: { 40 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 {
15 private restExtractor: RestExtractor 15 private restExtractor: RestExtractor
16 ) {} 16 ) {}
17 17
18 checkTokenValidity () {
19 const url = UserService.BASE_USERS_URL + 'me'
20
21 // AuthHttp will redirect us to the login page if the token is not valid anymore
22 this.authHttp.get(url).subscribe()
23 }
24
25 changePassword (newPassword: string) { 18 changePassword (newPassword: string) {
26 const url = UserService.BASE_USERS_URL + 'me' 19 const url = UserService.BASE_USERS_URL + 'me'
27 const body: UserUpdateMe = { 20 const body: UserUpdateMe = {