Reuse existing localization string (API key)

This commit is contained in:
Bernd Bestel 2020-09-06 09:56:29 +02:00
parent 7ccef956ba
commit 6bcabad670
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -61,10 +61,11 @@ $(document).on('click', '.apikey-delete-button', function(e)
} }
}); });
}); });
$('.apikey-show-qr-button').on('click', function () { $('.apikey-show-qr-button').on('click', function()
var QRhtml = getQRCodeForAPIKey( $(this).data('apikey-key'), $(this).data('apikey-type')); {
var QRhtml = getQRCodeForAPIKey($(this).data('apikey-key'), $(this).data('apikey-type'));
bootbox.alert({ bootbox.alert({
title: __t('API-Key'), title: __t('API key'),
message: QRhtml, message: QRhtml,
closeButton: false closeButton: false
}); });