Skip to content

Commit

Permalink
sort wanted/watching by date vs name
Browse files Browse the repository at this point in the history
  • Loading branch information
lardbit committed Aug 17, 2024
1 parent 9bcf4dc commit 94199df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/app/wanted/wanted.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<ngx-datatable
class="bootstrap"
[rows]="rows"
[sorts]="sortBy"
[columnMode]="ColumnMode.force"
[headerHeight]="50"
[footerHeight]="50"
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/src/app/wanted/wanted.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import { MediaFilterPipe } from '../filter.pipe';
})
export class WantedComponent implements OnInit, OnDestroy {
public results: any[] = [];
public sortBy: {prop: string, dir: string}[] = [
{ prop: 'date_added', dir: 'desc', },
];
public mediaType: string;
public search = '';
public ColumnMode = ColumnMode;
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/app/watching/watching.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class="bootstrap"
[rows]="rows"
[columnMode]="ColumnMode.force"
[sorts]="sortBy"
[headerHeight]="50"
[footerHeight]="50"
[rowHeight]="50"
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/src/app/watching/watching.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class WatchingComponent implements OnInit, OnDestroy {
public results: any[] = [];
public mediaType: string;
public search: string;
public sortBy: {prop: string, dir: string}[] = [
{ prop: 'collected_date', dir: 'desc', },
];
public ColumnMode = ColumnMode;

protected _changes: Subscription;
Expand Down

0 comments on commit 94199df

Please sign in to comment.