Fix client build
This commit is contained in:
parent
8439e2bb99
commit
9b19c6ad3d
|
@ -68,8 +68,8 @@
|
||||||
|
|
||||||
<my-button
|
<my-button
|
||||||
theme="primary" i18n-label label="Apply edits" icon="circle-tick"
|
theme="primary" i18n-label label="Apply edits" icon="circle-tick"
|
||||||
(click)="runEdition()" (keydown.enter)="runEdition()"
|
(click)="runEdit()" (keydown.enter)="runEdit()"
|
||||||
[disabled]="!form.valid || isRunningEdition || noEdition()"
|
[disabled]="!form.valid || isRunningEdit || noEdit()"
|
||||||
></my-button>
|
></my-button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
<my-embed [video]="video"></my-embed>
|
<my-embed [video]="video"></my-embed>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tasks-container" *ngIf="!noEdition()">
|
<div class="tasks-container" *ngIf="!noEdit()">
|
||||||
<div class="mb-1 fw-bold" i18n>Edits to apply:</div>
|
<div class="mb-1 fw-bold" i18n>Edits to apply:</div>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
|
|
|
@ -34,7 +34,7 @@ import { GlobalIconComponent } from '@app/shared/shared-icons/global-icon.compon
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class VideoStudioEditComponent extends FormReactive implements OnInit {
|
export class VideoStudioEditComponent extends FormReactive implements OnInit {
|
||||||
isRunningEditing = false
|
isRunningEdit = false
|
||||||
|
|
||||||
video: VideoDetails
|
video: VideoDetails
|
||||||
|
|
||||||
|
@ -86,10 +86,10 @@ export class VideoStudioEditComponent extends FormReactive implements OnInit {
|
||||||
return this.serverService.getHTMLConfig().video.image.extensions
|
return this.serverService.getHTMLConfig().video.image.extensions
|
||||||
}
|
}
|
||||||
|
|
||||||
async runEditing () {
|
async runEdit () {
|
||||||
if (this.isRunningEditing) return
|
if (this.isRunningEdit) return
|
||||||
if (!this.form.valid) return
|
if (!this.form.valid) return
|
||||||
if (this.noEditing()) return
|
if (this.noEdit()) 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('')
|
||||||
|
@ -100,7 +100,7 @@ export class VideoStudioEditComponent extends FormReactive implements OnInit {
|
||||||
|
|
||||||
if (await this.confirmService.confirm(confirmHTML, title) !== true) return
|
if (await this.confirmService.confirm(confirmHTML, title) !== true) return
|
||||||
|
|
||||||
this.isRunningEditing = true
|
this.isRunningEdit = true
|
||||||
|
|
||||||
const tasks = this.buildTasks()
|
const tasks = this.buildTasks()
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ export class VideoStudioEditComponent extends FormReactive implements OnInit {
|
||||||
|
|
||||||
error: err => {
|
error: err => {
|
||||||
this.loadingBar.useRef().complete()
|
this.loadingBar.useRef().complete()
|
||||||
this.isRunningEditing = false
|
this.isRunningEdit = false
|
||||||
this.notifier.error(err.message)
|
this.notifier.error(err.message)
|
||||||
logger.error(err)
|
logger.error(err)
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ export class VideoStudioEditComponent extends FormReactive implements OnInit {
|
||||||
return $localize`(extensions: ${this.imageExtensions.join(', ')})`
|
return $localize`(extensions: ${this.imageExtensions.join(', ')})`
|
||||||
}
|
}
|
||||||
|
|
||||||
noEditing () {
|
noEdit () {
|
||||||
return this.buildTasks().length === 0
|
return this.buildTasks().length === 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<div class="d-flex justify-content-between align-items-center mb-3 ms-2">
|
<div class="d-flex justify-content-between align-items-center mb-3 ms-2">
|
||||||
<my-peertube-checkbox
|
<my-peertube-checkbox
|
||||||
inputName="raw-edition"
|
inputName="raw-edition"
|
||||||
[(ngModel)]="rawEdition" (ngModelChange)="onRawEditionSwitch()"
|
[(ngModel)]="rawEdit" (ngModelChange)="onRawEditSwitch()"
|
||||||
i18n-labelText labelText="Edit raw"
|
i18n-labelText labelText="Edit raw"
|
||||||
></my-peertube-checkbox>
|
></my-peertube-checkbox>
|
||||||
|
|
||||||
|
|
|
@ -1113,7 +1113,7 @@ export const TRACKER_RATE_LIMITS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// We use -2 instead of 2 because of historical reason
|
// We use -2 instead of 2 because of historical reason
|
||||||
// When p2p-media-loader bumps to v3, we'll be able to switch to it
|
// When p2p-media-loader bumps to v3, we'll be able to switch to 3 directly
|
||||||
export const P2P_MEDIA_LOADER_PEER_VERSION = -2
|
export const P2P_MEDIA_LOADER_PEER_VERSION = -2
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue