mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
add option to hide categories from the global unread list
This commit is contained in:
parent
571d7bf17c
commit
0bcfc81b1f
24 changed files with 109 additions and 30 deletions
|
@ -206,14 +206,20 @@ function updateEntriesStatus(entryIDs, status, callback) {
|
|||
let url = document.body.dataset.entriesStatusUrl;
|
||||
let request = new RequestBuilder(url);
|
||||
request.withBody({entry_ids: entryIDs, status: status});
|
||||
request.withCallback(callback);
|
||||
request.execute();
|
||||
request.withCallback((resp) => {
|
||||
resp.json().then(count => {
|
||||
if (callback) {
|
||||
callback(resp);
|
||||
}
|
||||
|
||||
if (status === "read") {
|
||||
decrementUnreadCounter(1);
|
||||
} else {
|
||||
incrementUnreadCounter(1);
|
||||
}
|
||||
if (status === "read") {
|
||||
decrementUnreadCounter(count);
|
||||
} else {
|
||||
incrementUnreadCounter(count);
|
||||
}
|
||||
});
|
||||
});
|
||||
request.execute();
|
||||
}
|
||||
|
||||
// Handle save entry from list view and entry view.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue