From d5d706ccd4408e85a5dd074bdc0ebb49c3e13109 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Tue, 23 Mar 2021 17:17:37 +0100 Subject: [PATCH] [fix] Add pubkey checksum in QRCode and pubkey's icon (on mobile device) --- www/templates/common/qrcode.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/www/templates/common/qrcode.html b/www/templates/common/qrcode.html index b8c625a28..a778b7f3a 100644 --- a/www/templates/common/qrcode.html +++ b/www/templates/common/qrcode.html @@ -3,12 +3,17 @@ ng-class="{'active': toggleQRCode}" ng-click="toggleQRCode = !toggleQRCode"> <div class="content"></div> - <div class="footer item item-icon-left item-text-wrap ink" + <div class="footer item item-icon-left item-text-wrap item-icon-right ink" + ng-if="toggleQRCode" on-hold="copy(formData.pubkey)" - copy-on-click="{{:rebind:formData.pubkey}}" + copy-on-click="{{::formData.pubkey|formatPubkey:{full: true, checksum: formData.checksum} }}" ng-click="$event.stopPropagation()"> <i class="icon ion-key"></i> <span>{{:locale:'COMMON.PUBKEY'|translate}}</span> - <h4 id="pubkey" class="dark">{{:rebind:formData.pubkey}}</h4> + + <h4 class="dark text-left">{{::formData.pubkey|formatPubkey: {full: true, checksum: formData.checksum} }}</h4> + + <!-- icon of the pubkey --> + <i class="icon" jdenticon="{{::formData.pubkey}}" jdenticon-size="32"></i> </div> </a> -- GitLab