hide legend for QR Code size toggle when QR Code cannot be rendered

This commit is contained in:
Marcus Jaschen 2023-05-18 14:41:12 +02:00
parent 2493fd6465
commit 0cc9b8b13f
2 changed files with 6 additions and 5 deletions

View file

@ -99,6 +99,7 @@ BR.ShareRoute = L.Class.extend({
} catch (exception) {
$('#share-qrcode-img').empty();
$('#qrcode-buttons').hide();
$('#qrcode-size-buttons').hide();
if (exception.message === 'Too long data') {
$('#qrcode-msg-too-long').show();