Add "Upload Date" column

This commit is contained in:
Geomitron
2025-02-08 12:19:24 -06:00
parent deaa7d22be
commit c9166966c1
7 changed files with 18 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ export class ResultTableComponent implements OnInit {
activeSong: ChartData[] | null = null
sortDirection: 'asc' | 'desc' = 'asc'
sortColumn: 'name' | 'artist' | 'album' | 'genre' | 'year' | 'charter' | 'length' | null = null
sortColumn: 'name' | 'artist' | 'album' | 'genre' | 'year' | 'charter' | 'length' | 'modifiedTime' | null = null
constructor(
public searchService: SearchService,
@@ -57,7 +57,7 @@ export class ResultTableComponent implements OnInit {
}
}
onColClicked(column: 'name' | 'artist' | 'album' | 'genre' | 'year' | 'charter' | 'length') {
onColClicked(column: 'name' | 'artist' | 'album' | 'genre' | 'year' | 'charter' | 'length' | 'modifiedTime') {
if (this.songs.length === 0) { return }
if (this.sortColumn !== column) {
this.sortColumn = column