window/TfaWindow: fix text format

Ext.String.format was missing to show the number correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-11-12 15:40:04 +01:00 committed by Thomas Lamprecht
parent ceff5d3fc0
commit 55e47317c0

View File

@ -384,7 +384,10 @@ Ext.define('Proxmox.window.TfaLoginWindow', {
reference: 'recoveryLow',
hidden: true,
html: '<i class="fa fa-exclamation-triangle warning"></i>'
+ gettext('Less than {0} recovery keys available. Please generate a new set after login!'),
+ Ext.String.format(
gettext('Less than {0} recovery keys available. Please generate a new set after login!'),
4,
),
},
],
},