ui: sync/verify jobs: use pmxDisplayEditField to fix editing

commit bd21a63b only fixed sync, not verify, and we can do better by
using a display-edit field.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-17 09:47:15 +02:00
parent bd21a63bd2
commit 76bc66b9bd
2 changed files with 6 additions and 4 deletions

View File

@ -222,15 +222,14 @@ Ext.define('PBS.window.SyncJobEdit', {
],
advancedColumn1: [
{
xtype: 'proxmoxtextfield',
xtype: 'pmxDisplayEditField',
fieldLabel: gettext('Job ID'),
emptyText: gettext('Autogenerate'),
name: 'id',
allowBlank: true,
regex: PBS.Utils.SAFE_ID_RE,
cbind: {
disabled: '{!isCreate}',
hidden: '{!isCreate}',
editable: '{isCreate}',
},
},
],

View File

@ -153,12 +153,15 @@ Ext.define('PBS.window.VerifyJobEdit', {
],
advancedColumn1: [
{
xtype: 'proxmoxtextfield',
xtype: 'pmxDisplayEditField',
fieldLabel: gettext('Job ID'),
emptyText: gettext('Autogenerate'),
name: 'id',
allowBlank: true,
regex: PBS.Utils.SAFE_ID_RE,
cbind: {
editable: '{isCreate}',
},
},
],
},