Prevent edition with 0 task
This commit is contained in:
parent
597032cbd5
commit
366d5aea5d
1 changed files with 2 additions and 0 deletions
|
@ -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('')
|
||||
|
|
Loading…
Reference in a new issue