diff --git a/nullboard.html b/nullboard.html index 258587c..f32b3e5 100644 --- a/nullboard.html +++ b/nullboard.html @@ -1166,6 +1166,7 @@ Export board... Use lightdark theme Use smallerlarger font + Flush namespace Set namespace @@ -3066,6 +3067,19 @@ return true; }); + $('.config .flush-namespace').click(function() { + var namespace = getCurrentNamespace(); + var confirmation = confirm("Are you sure you want to clear " + namespace + "?"); + if (! confirmation) + return false; + globalStorage.forEach((k) => { + globalStorage.del(k); + }); + popAllNamespaces(namespace); + setGlobalNamespace(getAllNamespaces()[0]); + return false; + }); + $('.config .switch-namespace').click(function() { var namespace = prompt("Namespace", getCurrentNamespace()); if (namespace != getCurrentNamespace())