]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/qemu/CloudInit.js
fix #2334: gui/cloudinit: enable edit button only when editor is set
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 9 Jan 2020 08:59:35 +0000 (09:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jan 2020 16:42:34 +0000 (17:42 +0100)
commitd790a1b45e9a2759e92ffc90c77026432f088251
treea490fdb8dc071fdfd7ce3a56c74bacfc42015eca
parente341425c73d445aa437482ffb7178205d0a6a118
fix #2334: gui/cloudinit: enable edit button only when editor is set

when a user does not have the right privileges for cloudinit (e.g.
VM.Config.Network), we do not set an editor, which results in a button
that does nothing when pressed

fix this by enabling the button only when there is an editor set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/qemu/CloudInit.js