name: 'selMode',
fieldLabel: gettext('Selection mode'),
},
- {
- xtype: 'displayfield',
- name: 'pool',
- fieldLabel: gettext('Pool to backup'),
- },
],
column2: [
{
fieldLabel: gettext('Enabled'),
renderer: v => PVE.Parser.parseBoolean(v.toString()) ? gettext('Yes') : gettext('No'),
},
+ {
+ xtype: 'displayfield',
+ name: 'pool',
+ fieldLabel: gettext('Pool to backup'),
+ },
],
columnB: [
xtype: 'displayfield',
name: 'comment',
fieldLabel: gettext('Comment'),
+ renderer: Ext.String.htmlEncode,
},
{
- xtype: 'label',
- name: 'pruneLabel',
- text: gettext('Retention Configuration') + ':',
- bind: {
- hidden: '{!hasRetention}',
- },
- },
- {
+ xtype: 'fieldset',
+ title: gettext('Retention Configuration'),
layout: 'hbox',
- border: false,
+ collapsible: true,
defaults: {
border: false,
layout: 'anchor',
flex: 1,
},
+ bind: {
+ hidden: '{!hasRetention}',
+ },
items: [
{
padding: '0 10 0 0',
me.store.clearFilter(true);
me.store.filterBy(function(record) {
let data = record.data;
- for (const property in ['name', 'id', 'type']) {
+ for (const property of ['name', 'vmid', 'type']) {
if (data[property] === null) {
continue;
}