Skip to content

Commit

Permalink
hide button when set to hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
pythongosssss committed Oct 23, 2024
1 parent 9ec9cdb commit 99e7bf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/js/imageFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ app.registerExtension({
onChange(value) {
if (value === "hidden") {
imageFeed.remove();
if (showMenuButton) {
showMenuButton.element.style.display = "none";
}
showButton.style.display = "none";
} else {
showButton.style.display = visible ? "none" : "unset";
Expand Down

0 comments on commit 99e7bf7

Please sign in to comment.