Browse Source

Merge branch 'feat_xpub_rescan_ux' into 'develop'

disable rescan-lookahead field if data source is third_party_explorer

See merge request dojo/samourai-dojo!201
umbrel
kenshin-samourai 4 years ago
parent
commit
61f5ad75be
  1. 6
      static/admin/css/style.css
  2. 4
      static/admin/dmt/status/status.js
  3. 4
      static/admin/dmt/xpubs-tools/xpubs-tools.js
  4. 1
      static/admin/lib/auth-utils.js

6
static/admin/css/style.css

@ -27,6 +27,12 @@ input[type="checkbox"]{
-webkit-transform: scale(1.3);
}
input:disabled, select:disabled {
border: 1px solid #8f8f8f;
color: #8f8f8f;
background-color: #3a3d3f;
}
a, a:visited {
color: #a1a1a1;
}

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)

4
static/admin/dmt/xpubs-tools/xpubs-tools.js

@ -27,6 +27,10 @@ const screenXpubsToolsScript = {
},
preparePage: function() {
// Disable custom lookahead if data source is a third party explorer
const disableLookahead = sessionStorage.getItem('indexerType') == 'third_party_explorer'
$('#rescan-lookahead').prop('disabled', disableLookahead)
this.hideRescanForm()
this.hideDeletionForm()
this.showSearchForm()

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