matt-flaig / Boomi-Platform-Extension

This browser extension provides some feature improvements and functionality to the Boomi platform 🧩✨
4 stars 1 forks source link

Use old folder icons in sidebar with Legacy Icon set #2

Open mitchelljfranklin opened 1 year ago

mitchelljfranklin commented 1 year ago

Not sure if anyone is interested in this change, but the Legacy icons for the folders in the sidebar can be accessed by removing the updated class from the elements:

Array.from(document.getElementsByClassName("basic_tree_item")).forEach(
    function(element, index, array) {
        element.classList.remove("updated");
    }
);

This would need to be called each time a folder is opened, as the children are not loaded into the DOM until a folder is opened.

image