diff options
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.ts | 13 |
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 | } |