From d172a56155c8ac31ebd855356aa083e459227202 Mon Sep 17 00:00:00 2001 From: flatsiedatsie Date: Wed, 31 Aug 2022 10:54:30 +0200 Subject: [PATCH] Add files via upload --- js/extension.js | 10 +++++++++- views/content.html | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/js/extension.js b/js/extension.js index f22c01f..1a9141a 100644 --- a/js/extension.js +++ b/js/extension.js @@ -36,6 +36,7 @@ let list_el = document.getElementById('extension-privacy-manager-things-list-container'); list_el.innerHTML = ""; + var at_least_on_thing_shown = false; // how many things with settings are shown in the UI // Pre populating the original item that will be clones to create new ones API.getThings().then((things) => { @@ -264,6 +265,10 @@ input_el.appendChild(false_option); + if(at_least_on_thing_shown == false){ + at_least_on_thing_shown = true; + document.getElementById('extension-privacy-manager-no-things-warning').style.display = 'none'; + }; } // Color property @@ -303,7 +308,10 @@ input_el.appendChild(option); } - + if(at_least_on_thing_shown == false){ + at_least_on_thing_shown = true; + document.getElementById('extension-privacy-manager-no-things-warning').style.display = 'none'; + }; } } diff --git a/views/content.html b/views/content.html index 18440a7..6218073 100644 --- a/views/content.html +++ b/views/content.html @@ -18,6 +18,7 @@

Things

+


There are no things with privacy settings yet