diff --git a/dashboard/src/app/albums/albums.component.ts b/dashboard/src/app/albums/albums.component.ts index 917d396..6c5f088 100644 --- a/dashboard/src/app/albums/albums.component.ts +++ b/dashboard/src/app/albums/albums.component.ts @@ -27,7 +27,7 @@ export class AlbumsComponent implements OnInit { this.loadData(); } - private editQuery(field: string, value: string, type: query_edit_type): void { + private editQuery(field: string, value: Album, type: query_edit_type): void { // TODO Move this method to a service if (value[field] instanceof Array) { value[field] = value[field][0] @@ -49,12 +49,12 @@ export class AlbumsComponent implements OnInit { this.queryEdited = true; } - exlude(field: string, value: string): void { + exlude(field: string, value: Album): void { this.editQuery(field, value, query_edit_type.exclude) this.loadData() } - select(field: string, value: string): void { + select(field: string, value: Album): void { this.editQuery(field, value, query_edit_type.select) this.loadData() } diff --git a/dashboard/tsconfig.json b/dashboard/tsconfig.json index f69f654..baab173 100644 --- a/dashboard/tsconfig.json +++ b/dashboard/tsconfig.json @@ -16,5 +16,8 @@ "es2018", "dom" ] + }, + "angularCompilerOptions": { + "strictTemplates": true } }