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:
parent
bd21a63bd2
commit
76bc66b9bd
@ -222,15 +222,14 @@ Ext.define('PBS.window.SyncJobEdit', {
|
|||||||
],
|
],
|
||||||
advancedColumn1: [
|
advancedColumn1: [
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'pmxDisplayEditField',
|
||||||
fieldLabel: gettext('Job ID'),
|
fieldLabel: gettext('Job ID'),
|
||||||
emptyText: gettext('Autogenerate'),
|
emptyText: gettext('Autogenerate'),
|
||||||
name: 'id',
|
name: 'id',
|
||||||
allowBlank: true,
|
allowBlank: true,
|
||||||
regex: PBS.Utils.SAFE_ID_RE,
|
regex: PBS.Utils.SAFE_ID_RE,
|
||||||
cbind: {
|
cbind: {
|
||||||
disabled: '{!isCreate}',
|
editable: '{isCreate}',
|
||||||
hidden: '{!isCreate}',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -153,12 +153,15 @@ Ext.define('PBS.window.VerifyJobEdit', {
|
|||||||
],
|
],
|
||||||
advancedColumn1: [
|
advancedColumn1: [
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'pmxDisplayEditField',
|
||||||
fieldLabel: gettext('Job ID'),
|
fieldLabel: gettext('Job ID'),
|
||||||
emptyText: gettext('Autogenerate'),
|
emptyText: gettext('Autogenerate'),
|
||||||
name: 'id',
|
name: 'id',
|
||||||
allowBlank: true,
|
allowBlank: true,
|
||||||
regex: PBS.Utils.SAFE_ID_RE,
|
regex: PBS.Utils.SAFE_ID_RE,
|
||||||
|
cbind: {
|
||||||
|
editable: '{isCreate}',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user