Skip to content

Commit 3c88ff3

Browse files
committed
Re-enabled filtering for wantlist.
1 parent b32a135 commit 3c88ff3

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

frontend/src/components/AlbumGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const AlbumGrid: React.FC<CollectionProps> = ({ data, sort = "none", type, usern
5050
break
5151
case "release":
5252
displayData = splitRecordsByYear(data)
53-
labelText = "Collected in "
53+
labelText = `${type === "collection" ? "Collected" : "Wanted"} in `
5454
break
5555
case "label":
5656
displayData = splitRecordsByLabel(data)

frontend/src/pages/Collection.tsx

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -138,25 +138,23 @@ const CollectionPage: React.FC = () => {
138138
<IonPage>
139139
<IonHeader translucent>
140140
<IonToolbar>
141-
{viewState === "collection" && (
142-
<IonButtons slot="primary">
143-
<IonButton
144-
onClick={() =>
145-
present({
146-
header: "Sorting",
147-
buttons: filterActionButtons,
148-
onDidDismiss: ({ detail }) => {
149-
if (detail.data.action !== "cancel") {
150-
setFilter(detail.data.action)
151-
}
152-
},
153-
})
154-
}
155-
>
156-
<IonIcon slot="icon-only" md={getFilterIcon(filter)}></IonIcon>
157-
</IonButton>
158-
</IonButtons>
159-
)}
141+
<IonButtons slot="primary">
142+
<IonButton
143+
onClick={() =>
144+
present({
145+
header: "Sorting",
146+
buttons: filterActionButtons,
147+
onDidDismiss: ({ detail }) => {
148+
if (detail.data.action !== "cancel") {
149+
setFilter(detail.data.action)
150+
}
151+
},
152+
})
153+
}
154+
>
155+
<IonIcon slot="icon-only" md={getFilterIcon(filter)}></IonIcon>
156+
</IonButton>
157+
</IonButtons>
160158
<IonSegment
161159
value={viewState}
162160
onIonChange={(e) => {
@@ -172,7 +170,7 @@ const CollectionPage: React.FC = () => {
172170
<IonLabel>Collection</IonLabel>
173171
</IonSegmentButton>
174172
<IonSegmentButton value="want">
175-
<IonLabel>Wants</IonLabel>
173+
<IonLabel>Wanted</IonLabel>
176174
</IonSegmentButton>
177175
</IonSegment>
178176
</IonToolbar>

0 commit comments

Comments
 (0)