mirror of https://github.com/Chocobozzz/PeerTube
Better label for default transcoding profile
parent
b14e3c3de9
commit
b99ee1b150
|
@ -51,11 +51,11 @@ export class EditLiveConfigurationComponent implements OnInit, OnChanges {
|
|||
const profiles = this.serverConfig.live.transcoding.availableProfiles
|
||||
|
||||
return profiles.map(p => {
|
||||
const description = p === 'default'
|
||||
? $localize`x264, targeting maximum device compatibility`
|
||||
: ''
|
||||
if (p === 'default') {
|
||||
return { id: p, label: $localize`Default`, description: $localize`x264, targeting maximum device compatibility` }
|
||||
}
|
||||
|
||||
return { id: p, label: p, description }
|
||||
return { id: p, label: p }
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -46,11 +46,11 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
|
|||
const profiles = this.serverConfig.transcoding.availableProfiles
|
||||
|
||||
return profiles.map(p => {
|
||||
const description = p === 'default'
|
||||
? $localize`x264, targeting maximum device compatibility`
|
||||
: ''
|
||||
if (p === 'default') {
|
||||
return { id: p, label: $localize`Default`, description: $localize`x264, targeting maximum device compatibility` }
|
||||
}
|
||||
|
||||
return { id: p, label: p, description }
|
||||
return { id: p, label: p }
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue