ui: backup job: rework advanced empty text and descriptions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-04-17 16:03:03 +02:00
parent cadc57ee38
commit 5abdd1e4e2

View File

@ -71,7 +71,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
xtype: 'pveBandwidthField', xtype: 'pveBandwidthField',
name: 'bwlimit', name: 'bwlimit',
fieldLabel: gettext('Bandwidth Limit'), fieldLabel: gettext('Bandwidth Limit'),
emptyText: gettext('use fallback'), emptyText: Ext.String.format(gettext('Fallback (default {0})'), 0),
backendUnit: 'KiB', backendUnit: 'KiB',
allowZero: true, allowZero: true,
emptyValue: '', emptyValue: '',
@ -86,7 +86,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
reference: 'zstdThreadCount', reference: 'zstdThreadCount',
fieldLabel: Ext.String.format(gettext('{0} Threads'), 'Zstd'), fieldLabel: Ext.String.format(gettext('{0} Threads'), 'Zstd'),
fieldStyle: 'text-align: right', fieldStyle: 'text-align: right',
emptyText: gettext('use fallback'), emptyText: Ext.String.format(gettext('Fallback (default {0})'), 1),
minValue: 0, minValue: 0,
cbind: { cbind: {
deleteEmpty: '{!isCreate}', deleteEmpty: '{!isCreate}',
@ -103,7 +103,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
maxValue: 256, maxValue: 256,
fieldLabel: gettext('IO-Workers'), fieldLabel: gettext('IO-Workers'),
fieldStyle: 'text-align: right', fieldStyle: 'text-align: right',
emptyText: gettext('use fallback'), emptyText: Ext.String.format(gettext('Fallback (default {0})'), 16),
cbind: { cbind: {
deleteEmpty: '{!isCreate}', deleteEmpty: '{!isCreate}',
}, },
@ -117,7 +117,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
hidden: true, hidden: true,
fieldLabel: 'TODO', fieldLabel: 'TODO',
fieldStyle: 'text-align: right', fieldStyle: 'text-align: right',
emptyText: gettext('use fallback'), emptyText: 'TODO',
cbind: { cbind: {
deleteEmpty: '{!isCreate}', deleteEmpty: '{!isCreate}',
}, },
@ -137,15 +137,15 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
column2: [ column2: [
{ {
xtype: 'displayfield', xtype: 'displayfield',
value: gettext('Limit I/O bandwidth'), value: gettext('Limit I/O bandwidth.'),
}, },
{ {
xtype: 'displayfield', xtype: 'displayfield',
value: `${gettext('Threads used for zstd compression')} (${gettext('non-PBS')})`, value: gettext('Threads used for zstd compression (non-PBS).'),
}, },
{ {
xtype: 'displayfield', xtype: 'displayfield',
value: `${gettext('I/O workers in the QEMU process')} (${gettext('VM only')})`, value: gettext('I/O workers in the QEMU process (VMs only).'),
}, },
{ {
xtype: 'displayfield', xtype: 'displayfield',
@ -154,7 +154,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
}, },
{ {
xtype: 'displayfield', xtype: 'displayfield',
value: gettext('Run missed jobs as soon as possible'), value: gettext("Run jobs as soon as possible if they couldn't start on schedule, for example, due to the node being offline."),
}, },
], ],