fix #1385: display no rbd user by default

when having an rbd storage with no user, we displayed 'admin' by default,
this patch sets '' and will be overwritten from the backend if a value is set

when creating a rbd storage, the textfield still has 'admin' in
there by default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-05-18 09:42:17 +02:00 committed by Wolfgang Bumiller
parent 0fcced161f
commit 5222800148

View File

@ -47,7 +47,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
{ {
xtype: me.isCreate ? 'textfield' : 'displayfield', xtype: me.isCreate ? 'textfield' : 'displayfield',
name: 'username', name: 'username',
value: 'admin', value: me.isCreate ? 'admin': '',
fieldLabel: gettext('User name'), fieldLabel: gettext('User name'),
allowBlank: true allowBlank: true
} }