var upid = response.result.data;
var win = Ext.create('Proxmox.window.TaskProgress', { upid: upid });
win.show();
- }
+ },
});
},
}
me.load_task.delay(load_delay);
- }
+ },
});
// if we do not have the permissions, we don't have to check
}
let res = response.result.data;
vm.set('snapshotFeature', !!res.hasFeature);
- }
+ },
});
},
let rec = view.getSelection()[0];
return Ext.String.format(
gettext('Are you sure you want to remove entry {0}'),
- `'${rec.data.name}'`
+ `'${rec.data.name}'`,
);
},
handler: 'remove',
name: 'order',
calculate: function(data) {
return data.snaptime || (data.name === 'current' ? 'ZZZ' : data.snapstate);
- }
- }
+ },
+ },
],
columns: [
} else {
return value;
}
- }
+ },
},
{
text: gettext('RAM'),
if (record.data.name !== 'current') {
return Proxmox.Utils.format_boolean(value);
}
- }
+ },
},
{
text: gettext('Date') + "/" + gettext("Status"),
return record.data.snapstate;
}
if (value) {
- return Ext.Date.format(value,'Y-m-d H:i:s');
+ return Ext.Date.format(value, 'Y-m-d H:i:s');
}
- }
+ },
},
{
text: gettext('Description'),
} else {
return Ext.String.htmlEncode(value);
}
- }
- }
+ },
+ },
],
});