aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-add-components/video-send.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-29 15:33:24 +0100
committerChocobozzz <me@florianbigard.com>2022-01-03 14:20:52 +0100
commitcc4bf76c13e38e9065d49161b6e0485657424577 (patch)
treed7ecc6bd58037c41587eb911776b676592985cd1 /client/src/app/+videos/+video-edit/video-add-components/video-send.ts
parente2aeb8ad0f3055d54ac416ec5908d26b70aac4be (diff)
downloadPeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.tar.gz
PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.tar.zst
PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.zip
Handle async validators
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-send.ts')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-send.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-send.ts b/client/src/app/+videos/+video-edit/video-add-components/video-send.ts
index 5e086ef42..3d0e1bf2a 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-send.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-send.ts
@@ -60,12 +60,6 @@ export abstract class VideoSend extends FormReactive implements OnInit {
60 }) 60 })
61 } 61 }
62 62
63 checkForm () {
64 this.forceCheck()
65
66 return this.form.valid
67 }
68
69 protected updateVideoAndCaptions (video: VideoEdit) { 63 protected updateVideoAndCaptions (video: VideoEdit) {
70 this.loadingBar.useRef().start() 64 this.loadingBar.useRef().start()
71 65
@@ -80,4 +74,11 @@ export abstract class VideoSend extends FormReactive implements OnInit {
80 }) 74 })
81 ) 75 )
82 } 76 }
77
78 protected async isFormValid () {
79 await this.waitPendingCheck()
80 this.forceCheck()
81
82 return this.form.valid
83 }
83} 84}