fix #6516: ui: backup job: limit the job ID length
The API only allows backup job IDs of up to 50 characters, so mark longer values as invalid in the edit window already, instead of failing on submit. Signed-off-by: Michal Fox <me@dualfroz.com>
This commit is contained in:
1 parent
f1b3e41dcd
commit
7143720659
1 file changed
+1
@@ -122,6 +122,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
|
|||||||
startColumn: {
|
startColumn: {
|
||||||
xtype: 'pmxDisplayEditField',
|
xtype: 'pmxDisplayEditField',
|
||||||
vtype: 'ConfigId',
|
vtype: 'ConfigId',
|
||||||
|
maxLength: 50,
|
||||||
fieldLabel: gettext('Job ID'),
|
fieldLabel: gettext('Job ID'),
|
||||||
emptyText: gettext('Autogenerate'),
|
emptyText: gettext('Autogenerate'),
|
||||||
name: 'id',
|
name: 'id',
|
||||||
|
|||||||
Reference in new issue
Block a user