2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 04:00:57 +00:00

use sidebar-wrapper for styleing

This commit is contained in:
Matthias
2021-12-07 00:26:36 +01:00
parent f375ba96ae
commit 388b42a407
2 changed files with 4 additions and 4 deletions

View File

@ -181,10 +181,10 @@ function enableSidetree(label) {
function setSidetreeState(label, state) {
if (state == 'collapsed') {
$('.sidetree-wrapper').hide(100);
$('#sidetree').hide(100);
$(`#sidetree-toggle-icon`).removeClass('fa-chevron-left').addClass('fa-chevron-right');
} else {
$('.sidetree-wrapper').show(100);
$('#sidetree').show(100);
$(`#sidetree-toggle-icon`).removeClass('fa-chevron-right').addClass('fa-chevron-left');
}
localStorage.setItem(`inventree-tree-state-${label}`, state);