Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Aug 31, 2022
1 parent cd4213c commit d172a56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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';
};

}
}
Expand Down
1 change: 1 addition & 0 deletions views/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ <h1 id="extension-privacy-manager-title"><span id="extension-privacy-manager-ico
<div id="extension-privacy-manager-tab-things" class="extension-privacy-manager-tab extension-privacy-manager-centered-page">
<h3>Things</h3>
<!--<p>An overview of the privacy settings of currently available things:</p>-->
<p id="extension-privacy-manager-no-things-warning" style="font-style:italic"><br/>There are no things with privacy settings yet<p>

<div id="extension-privacy-manager-things-list-container">

Expand Down

0 comments on commit d172a56

Please sign in to comment.