summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/images.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/images.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/images.html')
-rw-r--r--ogcp/templates/images.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html
index 7a16a0d..06d614a 100644
--- a/ogcp/templates/images.html
+++ b/ogcp/templates/images.html
@@ -14,7 +14,7 @@
// in the scope
document.addEventListener('readystatechange', () => {
if (document.readyState === 'complete') {
- keepTreeState('#servers');
+ keepTreeState('#servers', 'images');
keepSelectedClients('images');
checkOnChange('image-server');
}