onGetValues: function(values) {
var me = this;
- if (me.create) {
+ if (me.isCreate) {
values.type = 'sheepdog';
values.content = 'images';
me.column1 = [
{
- xtype: me.create ? 'textfield' : 'displayfield',
+ xtype: me.isCreate ? 'textfield' : 'displayfield',
name: 'storage',
value: me.storageId || '',
fieldLabel: 'ID',
allowBlank: false
},
{
- xtype: me.create ? 'textfield' : 'displayfield',
+ xtype: me.isCreate ? 'textfield' : 'displayfield',
name: 'portal',
value: '127.0.0.1:7000',
fieldLabel: gettext('Gateway'),
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
}
];
- if (me.create || me.storageId !== 'local') {
+ if (me.isCreate || me.storageId !== 'local') {
me.column2.unshift({
xtype: 'pveNodeSelector',
name: 'nodes',
initComponent : function() {
var me = this;
- me.create = !me.storageId;
+ me.isCreate = !me.storageId;
- if (me.create) {
+ if (me.isCreate) {
me.url = '/api2/extjs/storage';
me.method = 'POST';
} else {
}
var ipanel = Ext.create('PVE.storage.SheepdogInputPanel', {
- create: me.create,
+ isCreate: me.isCreate,
storageId: me.storageId
});
me.callParent();
- if (!me.create) {
+ if (!me.isCreate) {
me.load({
success: function(response, options) {
var values = response.result.data;