Do not hardcode the name of the admin user, instead move it to a stub function which we can enhance when our templates provide the necessary meta information. --- www/manager/lxc/CreateWizard.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/www/manager/lxc/CreateWizard.js b/www/manager/lxc/CreateWizard.js index 5506731..0054779 100644 --- a/www/manager/lxc/CreateWizard.js +++ b/www/manager/lxc/CreateWizard.js @@ -5,6 +5,12 @@ Ext.define('PVE.lxc.CreateWizard', { initComponent: function() { var me = this; + function getAdminAccount() { + // our templates are configured with a root account + // but that might change in the future (ex: Ubuntu uses sudo) + return 'root'; + }; + var summarystore = Ext.create('Ext.data.Store', { model: 'KeyValue', sorters: [ @@ -103,7 +109,7 @@ Ext.define('PVE.lxc.CreateWizard', { inputType: 'password', name: 'password', value: '', - fieldLabel: gettext('Password'), + fieldLabel: getAdminAccount() + ' ' + gettext('Password'), allowBlank: false, minLength: 5, change: function(f, value) { -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel