Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prevent edition with 0 task

Chocobozzz366d5aea5d5b
diff --git a/client/src/app/+video-studio/edit/video-studio-edit.component.ts b/client/src/app/+video-studio/edit/video-studio-edit.component.ts
index dad083bf9b..94f7b5d0bb 100644
--- a/client/src/app/+video-studio/edit/video-studio-edit.component.ts
+++ b/client/src/app/+video-studio/edit/video-studio-edit.component.ts
@@ -69,6 +69,8 @@ export class VideoStudioEditComponent extends FormReactive implements OnInit {
async runEdition () {
if (this.isRunningEdition) return
+ if (!this.form.valid) return
+ if (this.noEdition()) return
const title = $localize`Are you sure you want to edit "${this.video.name}"?`
const listHTML = this.getTasksSummary().map(t => `<li>${t}</li>`).join('')