[pve-devel] [PATCH widget-toolkit] window/TfaWindow: fix text format
Dominik Csapak
d.csapak at proxmox.com
Fri Nov 12 15:40:04 CET 2021
Ext.String.format was missing to show the number correctly
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
alternatively, we could simply change the gettext, but
this way we are more flexible if we want to change the number in the
future
src/window/TfaWindow.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/window/TfaWindow.js b/src/window/TfaWindow.js
index d568f9b..27d53f0 100644
--- a/src/window/TfaWindow.js
+++ b/src/window/TfaWindow.js
@@ -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,
+ ),
},
],
},
--
2.30.2
More information about the pve-devel
mailing list