ui: tfa totp: whitespace and padding fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6676409f7f
commit
b2a43b987c
@ -153,28 +153,31 @@ Ext.define('PBS.window.AddTotp', {
|
|||||||
layout: 'hbox',
|
layout: 'hbox',
|
||||||
border: false,
|
border: false,
|
||||||
padding: '0 0 5 0',
|
padding: '0 0 5 0',
|
||||||
items: [{
|
items: [
|
||||||
xtype: 'textfield',
|
{
|
||||||
fieldLabel: gettext('Secret'),
|
xtype: 'textfield',
|
||||||
emptyText: gettext('Unchanged'),
|
fieldLabel: gettext('Secret'),
|
||||||
name: 'secret',
|
emptyText: gettext('Unchanged'),
|
||||||
reference: 'tfa_secret',
|
name: 'secret',
|
||||||
regex: /^[A-Z2-7=]+$/,
|
reference: 'tfa_secret',
|
||||||
regexText: 'Must be base32 [A-Z2-7=]',
|
regex: /^[A-Z2-7=]+$/,
|
||||||
maskRe: /[A-Z2-7=]/,
|
regexText: 'Must be base32 [A-Z2-7=]',
|
||||||
qrupdate: true,
|
maskRe: /[A-Z2-7=]/,
|
||||||
bind: {
|
qrupdate: true,
|
||||||
value: "{secret}",
|
bind: {
|
||||||
|
value: "{secret}",
|
||||||
|
},
|
||||||
|
flex: 4,
|
||||||
|
padding: '0 5 0 0',
|
||||||
},
|
},
|
||||||
flex: 4,
|
{
|
||||||
},
|
xtype: 'button',
|
||||||
{
|
text: gettext('Randomize'),
|
||||||
xtype: 'button',
|
reference: 'randomize_button',
|
||||||
text: gettext('Randomize'),
|
handler: 'randomizeSecret',
|
||||||
reference: 'randomize_button',
|
flex: 1,
|
||||||
handler: 'randomizeSecret',
|
},
|
||||||
flex: 1,
|
],
|
||||||
}],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'numberfield',
|
xtype: 'numberfield',
|
||||||
|
Loading…
Reference in New Issue
Block a user