toggle_sidebar: switch icon on click
parent
83650fffa4
commit
684a1368e9
@ -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';
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue