show hookscript in gui

only viewing, no editing
and show it only when it is set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-01-29 16:28:46 +01:00 committed by Thomas Lamprecht
parent aef28e0430
commit 95f2a8a21a
2 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,9 @@ Ext.define('PVE.lxc.Options', {
defaultValue: Proxmox.Utils.noneText,
editor: Proxmox.UserName === 'root@pam' ?
'PVE.lxc.FeaturesEdit' : undefined
},
hookscript: {
header: gettext('Hookscript')
}
};

View File

@ -292,6 +292,9 @@ Ext.define('PVE.qemu.Options', {
fieldLabel: gettext('Enabled')
}
} : undefined
},
hookscript: {
header: gettext('Hookscript')
}
};