From 8f0e773ac18135d45201ff1cd7d8df292c11f1dc Mon Sep 17 00:00:00 2001 From: David Tsay Date: Mon, 27 Jan 2020 13:43:13 -0800 Subject: [PATCH] remove storing navigated to local storage --- src/ui/layout/tree-item.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ui/layout/tree-item.vue b/src/ui/layout/tree-item.vue index beac262219..731f608cde 100644 --- a/src/ui/layout/tree-item.vue +++ b/src/ui/layout/tree-item.vue @@ -113,7 +113,6 @@ export default { this.openmct.router.on('change:path', this.highlightIfNavigated); this.getLocalStorageExpanded(); - this.getLocalStorageNavigated(); }, beforeDestroy() { /**** @@ -159,15 +158,6 @@ export default { } else if (oldPath === this.navigateToPath) { this.navigated = false; } - this.setLocalStorageNavigated(newPath); - }, - getLocalStorageNavigated() { - const navigated = localStorage.getItem(LOCAL_STORAGE_KEY__TREE_NAVIGATED); - this.navigated = navigated && JSON.parse(navigated) === this.navigateToPath; - }, - // on path change, store the path string of the new navigated/highlighted path to localstorage - setLocalStorageNavigated(path) { - localStorage.setItem(LOCAL_STORAGE_KEY__TREE_NAVIGATED, JSON.stringify(path)); }, getLocalStorageExpanded() { let expandedPaths = localStorage.getItem(LOCAL_STORAGE_KEY__TREE_EXPANDED);