Revert to old column naming in UI

This commit is contained in:
Rob Watson 2020-07-04 08:40:43 +02:00
parent 5f7dede514
commit e0483329fa
2 changed files with 6 additions and 6 deletions

View File

@ -28,8 +28,8 @@ const DEFAULT_SIZE: usize = 25;
enum SortKey { enum SortKey {
Name, Name,
Size, Size,
Seeders, Seeds,
Leechers, Leeches,
Scraped, Scraped,
} }
@ -163,8 +163,8 @@ fn build_order_clause(type_: &str, sort_key: SortKey, sort_dir: SortDirection) -
} }
}, },
SortKey::Size => "size_bytes", SortKey::Size => "size_bytes",
SortKey::Seeders => "seeders", SortKey::Seeds => "seeders",
SortKey::Leechers => "leechers", SortKey::Leeches => "leechers",
SortKey::Scraped => "scraped_date", SortKey::Scraped => "scraped_date",
}; };

View File

@ -161,8 +161,8 @@ export class Search extends Component<any, State> {
<tr> <tr>
<th class="search-name-col">{this.sortLink("Name")}</th> <th class="search-name-col">{this.sortLink("Name")}</th>
<th class="text-right">{this.sortLink("Size")}</th> <th class="text-right">{this.sortLink("Size")}</th>
<th class="text-right">{this.sortLink("Seeders")}</th> <th class="text-right">{this.sortLink("Seeds")}</th>
<th class="text-right d-none d-md-table-cell">{this.sortLink("Leechers")}</th> <th class="text-right d-none d-md-table-cell">{this.sortLink("Leeches")}</th>
<th class="text-right d-none d-md-table-cell">{this.sortLink("Scraped")}</th> <th class="text-right d-none d-md-table-cell">{this.sortLink("Scraped")}</th>
<th></th> <th></th>
</tr> </tr>