2018-11-19 03:26:29 +08:00
< form # settingsForm = "ngForm" class = "form-horizontal" >
< div class = "card mb-4" >
< h5 class = "card-header" >
2019-08-20 18:54:45 +08:00
< ng-container i18n > Video settings< / ng-container > < ng-container * ngIf = "changed" > *< / ng-container >
2018-11-19 03:26:29 +08:00
< div class = "switch-wrapper" >
< bSwitch
class="switch"
name="enabled"
[switch-on-color]="'success'"
2019-07-21 17:23:08 +08:00
[switch-inverse]="true"
2018-11-19 03:26:29 +08:00
[switch-off-text]="text.Disabled"
[switch-on-text]="text.Enabled"
[switch-disabled]="inProgress"
2019-07-21 17:23:08 +08:00
[switch-handle-width]="100"
[switch-label-width]="20"
2018-11-19 03:26:29 +08:00
[(ngModel)]="settings.enabled">
< / bSwitch >
< / div >
< / h5 >
< div class = "card-body" >
< div [ hidden ] = " ! error " class = "alert alert-danger" role = "alert" > < strong > Error: < / strong > {{error}}< / div >
< ng-container i18n > Video support uses ffmpeg. ffmpeg and ffprobe binaries need to be available in the PATH or the @ffmpeg-installer/ffmpeg and @ffprobe-installer/ffprobe optional node packages need to be installed.< / ng-container >
< button class = "btn btn-success float-right"
[disabled]="!settingsForm.form.valid || !changed || inProgress"
(click)="save()" i18n>Save
< / button >
2019-02-23 07:29:35 +08:00
< button class = "btn btn-secondary float-right"
2019-12-08 01:16:37 +08:00
[disabled]=" !changed || inProgress"
2018-11-19 03:26:29 +08:00
(click)="reset()" i18n>Reset
< / button >
< / div >
< / div >
< / form >