Skip to content

Commit c23e38b

Browse files
authored
feat(dashboard-settings): update sort field options for Surname, and Personal Rating (#2456)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
1 parent a1ff5ee commit c23e38b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

booklore-ui/src/app/features/dashboard/components/dashboard-settings/dashboard-settings.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {CheckboxModule} from 'primeng/checkbox';
77
import {InputTextModule} from 'primeng/inputtext';
88
import {SelectModule} from 'primeng/select';
99
import {InputNumberModule} from 'primeng/inputnumber';
10-
import {SortDirection} from "../../../book/model/sort.model";
1110
import {DashboardConfig, ScrollerConfig, ScrollerType} from '../../models/dashboard-config.model';
1211
import {DashboardConfigService} from '../../services/dashboard-config.service';
1312
import {MagicShelfService} from '../../../magic-shelf/service/magic-shelf.service';
@@ -57,10 +56,11 @@ export class DashboardSettingsComponent implements OnInit {
5756
sortFieldOptions = [
5857
{label: 'Title', value: 'title'},
5958
{label: 'Title + Series', value: 'titleSeries'},
60-
{label: 'File Name', field: 'fileName'},
59+
{label: 'File Name', value: 'fileName'},
6160
{label: 'Date Added', value: 'addedOn'},
6261
{label: 'Author', value: 'author'},
63-
{label: 'Author + Series', field: 'authorSeries'},
62+
{label: 'Author (Surname)', value: 'authorSurnameVorname'},
63+
{label: 'Author + Series', value: 'authorSeries'},
6464
{label: 'Personal Rating', value: 'personalRating'},
6565
{label: 'Publisher', value: 'publisher'},
6666
{label: 'Published Date', value: 'publishedDate'},

booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export class ViewPreferencesComponent implements OnInit, OnDestroy {
3636
{label: 'Title + Series', field: 'titleSeries'},
3737
{label: 'File Name', field: 'fileName'},
3838
{label: 'Author', field: 'author'},
39+
{label: 'Author (Surname)', field: 'authorSurnameVorname'},
3940
{label: 'Author + Series', field: 'authorSeries'},
4041
{label: 'Last Read', field: 'lastReadTime'},
42+
{label: 'Personal Rating', field: 'personalRating'},
4143
{label: 'Added On', field: 'addedOn'},
4244
{label: 'File Size', field: 'fileSizeKb'},
4345
{label: 'Locked', field: 'locked'},

0 commit comments

Comments
 (0)