Browse Source

store indexer type

umbrel
kenshin-samourai 4 years ago
parent
commit
a21b83290b
  1. 4
      static/admin/dmt/status/status.js
  2. 1
      static/admin/lib/auth-utils.js

4
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)

1
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()
}

Loading…
Cancel
Save