summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/repos.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-16 17:29:14 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-16 17:29:14 +0200
commitf03077edb70e939bfb447fea4cf46340f736b657 (patch)
treeb59e2d4eb5748d13db4123396446a6f087035475 /ogcp/templates/repos.html
parent7296372e9c7ff7c354c86c00fa4fbcfbd71df355 (diff)
js: add ogStorage to prevent localStorage key collission
Define ogStorage class to manage the localStorage operations. The new keys are constructed with the following structure: "group-context-id" Where group is either "show" for the collapsed items in the sidebar, or "check" for the selected checkboxes of the sidebar. Add sotrage versioning to delete obsolete localStorage when a new design for the storage is included in ogCP.
Diffstat (limited to 'ogcp/templates/repos.html')
-rw-r--r--ogcp/templates/repos.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/repos.html b/ogcp/templates/repos.html
index 2f5fe1b..7983930 100644
--- a/ogcp/templates/repos.html
+++ b/ogcp/templates/repos.html
@@ -43,7 +43,7 @@
// in the scope
document.addEventListener('readystatechange', () => {
if (document.readyState === 'complete') {
- keepTreeState('#repos-list')
+ keepTreeState('#repos-list', 'repos');
keepSelectedClients('repos');
checkOnChange('repos-server');
}