1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 15:01:27 +00:00

toggle_sidebar: switch icon on click

This commit is contained in:
Andrew Dolgov
2019-03-06 12:52:09 +03:00
parent 83650fffa4
commit 684a1368e9
2 changed files with 16 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
Plugins.Toggle_Sidebar = {
toggle: function() {
Feeds.toggle();
const label = document.querySelector("i.toggle-sidebar-label");
label.innerHTML = Element.visible("feeds-holder") ? 'chevron_left' : 'chevron_right';
}
};