mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-20 02:33:33 +00:00
fix "mark all as read" in tag views marking the wrong entries (#2374)
This commit is contained in:
@@ -126,8 +126,13 @@ export const markAllEntries = createAppAsyncThunk(
|
||||
},
|
||||
thunkApi
|
||||
) => {
|
||||
const endpoint = arg.sourceType === "category" ? client.category.markEntries : client.feed.markEntries
|
||||
await endpoint(arg.req)
|
||||
if (arg.sourceType === "tag") {
|
||||
await client.category.markEntries({ ...arg.req, id: Constants.categories.all.id, tag: arg.req.id })
|
||||
} else if (arg.sourceType === "category") {
|
||||
await client.category.markEntries(arg.req)
|
||||
} else {
|
||||
await client.feed.markEntries(arg.req)
|
||||
}
|
||||
thunkApi.dispatch(reloadEntries())
|
||||
thunkApi.dispatch(reloadTree())
|
||||
}
|
||||
|
||||
@@ -147,6 +147,7 @@ export interface MarkRequest {
|
||||
insertedBefore?: number
|
||||
keywords?: string
|
||||
excludedSubscriptions?: number[]
|
||||
tag?: string
|
||||
}
|
||||
|
||||
export interface MetricCounter {
|
||||
|
||||
Reference in New Issue
Block a user