From c23e38b5a588a283884baf126ea7a56d33bb7be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Sz=C3=BCcs?= <127139797+balazs-szucs@users.noreply.github.com> Date: Sat, 24 Jan 2026 17:36:07 +0100 Subject: [PATCH] feat(dashboard-settings): update sort field options for Surname, and Personal Rating (#2456) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Balázs Szücs --- .../dashboard-settings/dashboard-settings.component.ts | 6 +++--- .../view-preferences/view-preferences.component.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/booklore-ui/src/app/features/dashboard/components/dashboard-settings/dashboard-settings.component.ts b/booklore-ui/src/app/features/dashboard/components/dashboard-settings/dashboard-settings.component.ts index 1484254f5..d5adb1702 100644 --- a/booklore-ui/src/app/features/dashboard/components/dashboard-settings/dashboard-settings.component.ts +++ b/booklore-ui/src/app/features/dashboard/components/dashboard-settings/dashboard-settings.component.ts @@ -7,7 +7,6 @@ import {CheckboxModule} from 'primeng/checkbox'; import {InputTextModule} from 'primeng/inputtext'; import {SelectModule} from 'primeng/select'; import {InputNumberModule} from 'primeng/inputnumber'; -import {SortDirection} from "../../../book/model/sort.model"; import {DashboardConfig, ScrollerConfig, ScrollerType} from '../../models/dashboard-config.model'; import {DashboardConfigService} from '../../services/dashboard-config.service'; import {MagicShelfService} from '../../../magic-shelf/service/magic-shelf.service'; @@ -57,10 +56,11 @@ export class DashboardSettingsComponent implements OnInit { sortFieldOptions = [ {label: 'Title', value: 'title'}, {label: 'Title + Series', value: 'titleSeries'}, - {label: 'File Name', field: 'fileName'}, + {label: 'File Name', value: 'fileName'}, {label: 'Date Added', value: 'addedOn'}, {label: 'Author', value: 'author'}, - {label: 'Author + Series', field: 'authorSeries'}, + {label: 'Author (Surname)', value: 'authorSurnameVorname'}, + {label: 'Author + Series', value: 'authorSeries'}, {label: 'Personal Rating', value: 'personalRating'}, {label: 'Publisher', value: 'publisher'}, {label: 'Published Date', value: 'publishedDate'}, diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.ts b/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.ts index 2fcc08211..7dee71bf4 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.ts +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.ts @@ -36,8 +36,10 @@ export class ViewPreferencesComponent implements OnInit, OnDestroy { {label: 'Title + Series', field: 'titleSeries'}, {label: 'File Name', field: 'fileName'}, {label: 'Author', field: 'author'}, + {label: 'Author (Surname)', field: 'authorSurnameVorname'}, {label: 'Author + Series', field: 'authorSeries'}, {label: 'Last Read', field: 'lastReadTime'}, + {label: 'Personal Rating', field: 'personalRating'}, {label: 'Added On', field: 'addedOn'}, {label: 'File Size', field: 'fileSizeKb'}, {label: 'Locked', field: 'locked'},