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
1 changed files with 2 additions and 0 deletions

View File

@ -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('')