diff --git a/www/window/AddTotp.js b/www/window/AddTotp.js index 414147e7..56b78a5a 100644 --- a/www/window/AddTotp.js +++ b/www/window/AddTotp.js @@ -153,28 +153,31 @@ Ext.define('PBS.window.AddTotp', { layout: 'hbox', border: false, padding: '0 0 5 0', - items: [{ - xtype: 'textfield', - fieldLabel: gettext('Secret'), - emptyText: gettext('Unchanged'), - name: 'secret', - reference: 'tfa_secret', - regex: /^[A-Z2-7=]+$/, - regexText: 'Must be base32 [A-Z2-7=]', - maskRe: /[A-Z2-7=]/, - qrupdate: true, - bind: { - value: "{secret}", + items: [ + { + xtype: 'textfield', + fieldLabel: gettext('Secret'), + emptyText: gettext('Unchanged'), + name: 'secret', + reference: 'tfa_secret', + regex: /^[A-Z2-7=]+$/, + regexText: 'Must be base32 [A-Z2-7=]', + maskRe: /[A-Z2-7=]/, + qrupdate: true, + bind: { + value: "{secret}", + }, + flex: 4, + padding: '0 5 0 0', }, - flex: 4, - }, - { - xtype: 'button', - text: gettext('Randomize'), - reference: 'randomize_button', - handler: 'randomizeSecret', - flex: 1, - }], + { + xtype: 'button', + text: gettext('Randomize'), + reference: 'randomize_button', + handler: 'randomizeSecret', + flex: 1, + }, + ], }, { xtype: 'numberfield',