@@ -382,17 +382,16 @@ function display_xpub_details(currency, xpub_key) {
382
382
} ) . join ( "" ) ,
383
383
currency_symbol = coin_data . ccsymbol ,
384
384
currency_icon = getcc_icon ( coin_data . cmcid , currency_symbol + "-" + currency , coin_data . erc20 ) ,
385
- dialog_content = $ ( "<div id='ad_info_wrap'><h2>" + currency_icon + " <span>" + currency + " " + tl ( "Key derivations" ) + "</span></h2><ul>\
386
- <li id='xpub_box' class='clearfix noline'>\
385
+ xpub_box = br_is_cashier ? "" : "<li id='xpub_box' class='clearfix noline'>\
387
386
<div class='xpub_ib clearfix pd_" + currency + "' data-xpub='" + xpub_key + "'>\
388
387
<div class='show_xpub'><strong>Xpub: </strong><span class='xpref ref'>" + tl ( "show" ) + "</span></div>\
389
388
<div class='xp_span drawer'>\
390
389
<div class='qrwrap flex'><div class='qrcode'></div>" + currency_icon + "</div>\
391
390
<p class='adbox adboxl select' data-type='Xpub'>" + xpub_key + "</p>\
392
391
</div>\
393
392
</div>\
394
- <li>\
395
- <div id='d_paths'></div>\
393
+ <li>" ,
394
+ dialog_content = $ ( "<div id='ad_info_wrap'><h2>" + currency_icon + " <span>" + currency + " " + tl ( "Key derivations" ) + "</span></h2><ul>" + xpub_box + " <div id='d_paths'></div>\
396
395
</li>\
397
396
</ul>\
398
397
</div>" ) . data ( root_config ) ;
@@ -536,6 +535,10 @@ function validate_xpub(form_container) {
536
535
xpub_fail ( currency ) ;
537
536
return false ;
538
537
}
538
+ const label_field = form_container . find ( ".addresslabel" ) ,
539
+ label_input = label_field . val ( ) ;
540
+ if ( inj ( label_input ) ) return
541
+ label_field . slideUp ( "500" ) . val ( "" ) ;
539
542
address_list . html ( derived_addresses ) ;
540
543
details_panel . slideDown ( "500" ) ;
541
544
const key_confirm = form_container . find ( "#pk_confirmwrap" ) ,
0 commit comments