diff --git a/src/app/@core/data/traffic-list.ts b/src/app/@core/data/traffic-list.ts index aee4a8b491..56f8614828 100644 --- a/src/app/@core/data/traffic-list.ts +++ b/src/app/@core/data/traffic-list.ts @@ -16,5 +16,5 @@ export interface TrafficList { } export abstract class TrafficListData { - abstract getTrafficListData(period: string): Observable; + abstract getTrafficListData(period: string): Observable; } diff --git a/src/app/@core/mock/traffic-list.service.ts b/src/app/@core/mock/traffic-list.service.ts index 369aa3312c..b25453a42f 100644 --- a/src/app/@core/mock/traffic-list.service.ts +++ b/src/app/@core/mock/traffic-list.service.ts @@ -7,7 +7,7 @@ import { TrafficList, TrafficListData } from '../data/traffic-list'; export class TrafficListService extends TrafficListData { private getRandom = (roundTo: number) => Math.round(Math.random() * roundTo); - private data = {}; + private data: Record = {}; constructor(private period: PeriodsService) { super(); @@ -79,7 +79,7 @@ export class TrafficListService extends TrafficListData { }, []); } - getTrafficListData(period: string): Observable { + getTrafficListData(period: string): Observable { return observableOf(this.data[period]); } } diff --git a/src/app/@theme/components/search-input/search-input.component.ts b/src/app/@theme/components/search-input/search-input.component.ts index 8527c65a11..69af4dc0d6 100644 --- a/src/app/@theme/components/search-input/search-input.component.ts +++ b/src/app/@theme/components/search-input/search-input.component.ts @@ -14,7 +14,7 @@ import { Component, ElementRef, EventEmitter, Output, ViewChild } from '@angular `, }) export class SearchInputComponent { - @ViewChild('input', { static: true }) input: ElementRef; + @ViewChild('input', { static: true }) input: ElementRef; @Output() search: EventEmitter = new EventEmitter(); @@ -29,7 +29,7 @@ export class SearchInputComponent { this.isInputShown = false; } - onInput(val: string) { - this.search.emit(val); + onInput(val: Event) { + this.search.emit(this.input.nativeElement.value); } } diff --git a/src/app/pages/dashboard/dashboard.component.ts b/src/app/pages/dashboard/dashboard.component.ts index c359216af2..b39b45b729 100644 --- a/src/app/pages/dashboard/dashboard.component.ts +++ b/src/app/pages/dashboard/dashboard.component.ts @@ -40,7 +40,7 @@ export class DashboardComponent implements OnDestroy { type: 'warning', }; - statusCards: string; + statusCards: CardSettings[]; commonStatusCardsSet: CardSettings[] = [ this.lightCard, diff --git a/src/app/pages/dashboard/rooms/player/player.component.html b/src/app/pages/dashboard/rooms/player/player.component.html index 75323a8ad8..a76bf858c1 100644 --- a/src/app/pages/dashboard/rooms/player/player.component.html +++ b/src/app/pages/dashboard/rooms/player/player.component.html @@ -12,7 +12,7 @@

{{ track.name }}

+ (input)="setProgress(duration.valueAsNumber)" #duration>
@@ -48,7 +48,7 @@

{{ track.name }}

+ (input)="setVolume(volume.valueAsNumber)" #volume>