1
0
Fork 0

Prevent edition with 0 task

This commit is contained in:
Chocobozzz 2023-02-15 16:10:31 +01:00
parent 597032cbd5
commit 366d5aea5d
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -69,6 +69,8 @@ export class VideoStudioEditComponent extends FormReactive implements OnInit {
async runEdition () { async runEdition () {
if (this.isRunningEdition) return 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 title = $localize`Are you sure you want to edit "${this.video.name}"?`
const listHTML = this.getTasksSummary().map(t => `<li>${t}</li>`).join('') const listHTML = this.getTasksSummary().map(t => `<li>${t}</li>`).join('')