diff --git a/src/app/app-settings/app-settings.component.html b/src/app/app-settings/app-settings.component.html index c0322d7..9202ca5 100644 --- a/src/app/app-settings/app-settings.component.html +++ b/src/app/app-settings/app-settings.component.html @@ -21,7 +21,7 @@

Upload

Filename Tag Service None (disabled) - @for (service of (apiSettings.apiSet ? (tagServices$ | async) : []); track service) { + @for (service of (apiSettings.apiSet ? (tagServices$ | async) : []); track service.service_key) { {{service.name}} diff --git a/src/app/browse/browse.component.html b/src/app/browse/browse.component.html index e407211..b4128ce 100644 --- a/src/app/browse/browse.component.html +++ b/src/app/browse/browse.component.html @@ -49,7 +49,7 @@ - @for (sortType of sortGroup.sortTypes; track sortType) { + @for (sortType of sortGroup.sortTypes; track sortType.sortType) { @if (!sortType.sortOrder.canAsc) { } @else { diff --git a/src/app/file-info-sheet/file-info-sheet.component.html b/src/app/file-info-sheet/file-info-sheet.component.html index 8051daa..76a5c68 100644 --- a/src/app/file-info-sheet/file-info-sheet.component.html +++ b/src/app/file-info-sheet/file-info-sheet.component.html @@ -129,7 +129,7 @@

File Info

Ratings - @for (rating of file.ratings_array; track trackByRating($index, rating)) { + @for (rating of file.ratings_array; track rating.service_key) { @if (isNumericalRatingService(rating)) {

{{rating.name}} ({{rating.value ?? 'not set'}})

@@ -175,7 +175,7 @@

Notes

- @for (note of file.notesMapArray; track trackByNote($index, note)) { + @for (note of file.notesMapArray; track note.name) { {{note.name}} @@ -202,7 +202,7 @@

Tags

Edit mode - @for (service of (fileInfoSheetService.showStorageTags ? file.storageTags : file.displayTags) | orderBy: 'serviceName' | orderBy: '-serviceType'; track trackByTagService($index, service)) { + @for (service of (fileInfoSheetService.showStorageTags ? file.storageTags : file.displayTags) | orderBy: 'serviceName' | orderBy: '-serviceType'; track service.serviceKey ?? service.serviceName) { {{service.serviceName}} ({{service.tags.length}}) diff --git a/src/app/file-info-sheet/file-info-sheet.component.ts b/src/app/file-info-sheet/file-info-sheet.component.ts index e9ef464..b238e40 100644 --- a/src/app/file-info-sheet/file-info-sheet.component.ts +++ b/src/app/file-info-sheet/file-info-sheet.component.ts @@ -158,18 +158,6 @@ export class FileInfoSheetComponent { this.reload$.next(null); } - trackByTagService(index: number, item: TagServiceItem) { - return item.serviceKey ?? item.serviceName; - } - - trackByNote(index: number, item: { name: string, value: string }) { - return item.name; - } - - trackByRating(index: number, rating: HydrusRating) { - return rating.service_key; - } - navigatorShare = navigator.share; diff --git a/src/app/image-list/image-list.component.html b/src/app/image-list/image-list.component.html index 3da0f1d..ccd4d67 100644 --- a/src/app/image-list/image-list.component.html +++ b/src/app/image-list/image-list.component.html @@ -1,7 +1,7 @@