From 75c7fecb671eb466dd5cda892c5339fbc8925219 Mon Sep 17 00:00:00 2001 From: greyhatsec-au <111026372+greyhatsec-au@users.noreply.github.com> Date: Tue, 27 Dec 2022 20:43:01 +1100 Subject: [PATCH] Hide 'List Accounts' button by default, show when the option is enabled --- web/index.html | 2 +- web/js/opentrashmail.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/index.html b/web/index.html index 97e6dce..3180461 100644 --- a/web/index.html +++ b/web/index.html @@ -26,7 +26,7 @@     - + diff --git a/web/js/opentrashmail.js b/web/js/opentrashmail.js index 5f7a092..da00f6e 100644 --- a/web/js/opentrashmail.js +++ b/web/js/opentrashmail.js @@ -18,8 +18,8 @@ $( document ).ready(function() { },"json") $.get("api.php?a=show-list",function(data){ - if (!data) - $("#btn-list-addresses").hide(); + if (data) + $("#btn-list-addresses").show(); },"json") });