1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Change link state when marking all entries as read

This commit is contained in:
Frédéric Guillot 2018-10-08 18:49:15 -07:00
parent 9dc38a0803
commit d4c1677e38
17 changed files with 63 additions and 29 deletions

View file

@ -0,0 +1,10 @@
class LinkStateHandler {
static flip(element) {
let labelElement = document.createElement("span")
labelElement.className = "link-flipped-state";
labelElement.appendChild(document.createTextNode(element.dataset.labelNewState));
element.parentNode.appendChild(labelElement);
element.parentNode.removeChild(element);
}
}