mirror of https://github.com/Chocobozzz/PeerTube
Prevent edition with 0 task
parent
597032cbd5
commit
366d5aea5d
|
@ -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 New Issue