mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-10-27 14:39:32 +03:00
Prevent edition with 0 task
This commit is contained in:
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
Block a user