aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-15 15:16:41 +0100
committerChocobozzz <me@florianbigard.com>2022-11-15 15:16:41 +0100
commit7dcd7d81406f4869363d2a5595d5c68f7106eb22 (patch)
tree6da3b6fa6c58db11187cde99b66756ef621360b7 /client/src/app/shared/shared-main
parent99b757488c077cee7d0ab89eeec181a7ee6290eb (diff)
downloadPeerTube-7dcd7d81406f4869363d2a5595d5c68f7106eb22.tar.gz
PeerTube-7dcd7d81406f4869363d2a5595d5c68f7106eb22.tar.zst
PeerTube-7dcd7d81406f4869363d2a5595d5c68f7106eb22.zip
Fix client lint
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r--client/src/app/shared/shared-main/angular/number-formatter.pipe.ts4
-rw-r--r--client/src/app/shared/shared-main/misc/list-overflow.component.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts b/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts
index 7c18b7f67..e0cb475fc 100644
--- a/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts
+++ b/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts
@@ -13,11 +13,11 @@ export class NumberFormatterPipe implements PipeTransform {
13 static getDecimalForNumber (x: number, n = 1) { 13 static getDecimalForNumber (x: number, n = 1) {
14 const v = x.toString().split('.') 14 const v = x.toString().split('.')
15 const f = v[1] || '' 15 const f = v[1] || ''
16 if (f.length > n) return +f.substr(0, n) 16 if (f.length > n) return +f.substring(0, n)
17 return +f 17 return +f
18 } 18 }
19 19
20 private dictionary: Array<{max: number, type: string}> = [ 20 private dictionary: Array<{ max: number, type: string }> = [
21 { max: 1000, type: '' }, 21 { max: 1000, type: '' },
22 { max: 1000000, type: 'K' }, 22 { max: 1000000, type: 'K' },
23 { max: 1000000000, type: 'M' } 23 { max: 1000000000, type: 'M' }
diff --git a/client/src/app/shared/shared-main/misc/list-overflow.component.ts b/client/src/app/shared/shared-main/misc/list-overflow.component.ts
index 7e4e1b1d1..b6ce21641 100644
--- a/client/src/app/shared/shared-main/misc/list-overflow.component.ts
+++ b/client/src/app/shared/shared-main/misc/list-overflow.component.ts
@@ -32,7 +32,7 @@ export interface ListOverflowItem {
32}) 32})
33export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit { 33export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit {
34 @Input() items: T[] 34 @Input() items: T[]
35 @Input() itemTemplate: TemplateRef<{item: T}> 35 @Input() itemTemplate: TemplateRef<{ item: T }>
36 36
37 @ViewChild('modal', { static: true }) modal: ElementRef 37 @ViewChild('modal', { static: true }) modal: ElementRef
38 @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement> 38 @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement>