diff --git a/webextension/css/popup.css b/webextension/css/popup.css index 36aa297..aed9df4 100644 --- a/webextension/css/popup.css +++ b/webextension/css/popup.css @@ -39,6 +39,12 @@ table.unstriped tbody tr { height: 32px; } +.hideorshow-icon { + max-width: 16px; + height: 16px; + margin: 4px; +} + .edit-identities { background: #DCDBDC; } diff --git a/webextension/js/popup.js b/webextension/js/popup.js index 49305ec..feb3147 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -3,17 +3,23 @@ const identityState = { }; function hideContainer(containerId) { + const hideorshowIcon = document.querySelector(`#${containerId}-hideorshow-icon`); + + hideorshowIcon.src = '/img/container-unhide.svg'; browser.contextualIdentities.hide(containerId); } function showContainer(containerId) { + const hideorshowIcon = document.querySelector(`#${containerId}-hideorshow-icon`); + + hideorshowIcon.src = '/img/container-hide.svg'; browser.contextualIdentities.show(containerId); } browser.contextualIdentities.query({}).then(identites=> { const identitiesListElement = document.querySelector('.identities-list'); - identites.forEach(identity => { + identites.forEach(identity=> { const identityRow = `