1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Add toggle status button to entry page

This commit is contained in:
Dave Z 2018-08-28 23:44:34 -04:00 committed by Frédéric Guillot
parent 4f62a704e2
commit 5341bbcbe2
11 changed files with 57 additions and 30 deletions

View file

@ -71,6 +71,11 @@ class NavHandler {
}
toggleEntryStatus() {
if (! this.isListView()) {
EntryHandler.toggleEntryStatus(document.querySelector(".entry"));
return;
}
let currentItem = document.querySelector(".current-item");
if (currentItem !== null) {
// The order is important here,