mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Migrate client to eslint
This commit is contained in:
parent
adb8809d43
commit
9df52d660f
215 changed files with 2052 additions and 1196 deletions
|
@ -40,14 +40,14 @@ export class ActorBannerEditComponent implements OnInit {
|
|||
this.maxBannerSize = config.banner.file.size.max
|
||||
this.bannerExtensions = config.banner.file.extensions.join(', ')
|
||||
|
||||
// tslint:disable:max-line-length
|
||||
/* eslint-disable max-len */
|
||||
this.bannerFormat = $localize`ratio 6/1, recommended size: 1920x317, max size: ${getBytes(this.maxBannerSize)}, extensions: ${this.bannerExtensions}`
|
||||
}
|
||||
|
||||
onBannerChange (input: HTMLInputElement) {
|
||||
this.bannerfileInput = new ElementRef(input)
|
||||
|
||||
const bannerfile = this.bannerfileInput.nativeElement.files[ 0 ]
|
||||
const bannerfile = this.bannerfileInput.nativeElement.files[0]
|
||||
if (bannerfile.size > this.maxBannerSize) {
|
||||
this.notifier.error('Error', $localize`This image is too large.`)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue