From a21b83290bc10fb862d0616e6ec3a2ca1ea8240f Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 26 Feb 2021 13:35:33 +0100 Subject: [PATCH] store indexer type --- static/admin/dmt/status/status.js | 4 +++- static/admin/lib/auth-utils.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/admin/dmt/status/status.js b/static/admin/dmt/status/status.js index f427e6c..1075172 100644 --- a/static/admin/dmt/status/status.js +++ b/static/admin/dmt/status/status.js @@ -55,8 +55,10 @@ const statusScript = { this.setStatusIndicator('#indexer-status-ind', 'ko') } const indexerType = apiStatus['indexer']['type'] - if (indexerType) + if (indexerType) { + sessionStorage.setItem('indexerType', indexerType) $('#indexer-type').text(indexerType.replace(/_/g, ' ')) + } const indexerUrl = apiStatus['indexer']['url'] if (indexerUrl) $('#indexer-url').text(indexerUrl) diff --git a/static/admin/lib/auth-utils.js b/static/admin/lib/auth-utils.js index 656a3d7..e17557b 100644 --- a/static/admin/lib/auth-utils.js +++ b/static/admin/lib/auth-utils.js @@ -139,6 +139,7 @@ const lib_auth = { this.setRefreshToken(null) this.setAccessToken(null) sessionStorage.setItem('activeTab', '') + sessionStorage.setItem('indexerType', '') lib_cmn.goToHomePage() }