aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-15 16:10:31 +0100
committerChocobozzz <me@florianbigard.com>2023-02-15 16:10:31 +0100
commit366d5aea5d5b320b54b9cfea9a646d7828de7bae (patch)
tree5a4524718bda0409f3ca3abde8df9003b766e69b /client
parent597032cbd5ea6b027e0f8a743b22133906445585 (diff)
downloadPeerTube-366d5aea5d5b320b54b9cfea9a646d7828de7bae.tar.gz
PeerTube-366d5aea5d5b320b54b9cfea9a646d7828de7bae.tar.zst
PeerTube-366d5aea5d5b320b54b9cfea9a646d7828de7bae.zip
Prevent edition with 0 task
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+video-studio/edit/video-studio-edit.component.ts2
1 files changed, 2 insertions, 0 deletions
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 dad083bf9..94f7b5d0b 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 {
69 69
70 async runEdition () { 70 async runEdition () {
71 if (this.isRunningEdition) return 71 if (this.isRunningEdition) return
72 if (!this.form.valid) return
73 if (this.noEdition()) return
72 74
73 const title = $localize`Are you sure you want to edit "${this.video.name}"?` 75 const title = $localize`Are you sure you want to edit "${this.video.name}"?`
74 const listHTML = this.getTasksSummary().map(t => `<li>${t}</li>`).join('') 76 const listHTML = this.getTasksSummary().map(t => `<li>${t}</li>`).join('')