]> git.proxmox.com Git - pve-manager.git/commit
add a helpbutton to the toolbar of the configpanel
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Sep 2016 11:46:10 +0000 (13:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Sep 2016 14:40:43 +0000 (16:40 +0200)
commit9cc74dfe3067589f31aa9d65aaa9f65fb975938d
tree3855def9bcd66ff6922eab19d17abbd1d8e7b7a4
parent3ef5861105cc96f5dd92bd3bf85c99fa06988c07
add a helpbutton to the toolbar of the configpanel

this adds a contextual help button to the action
toolbar on the far right.

now the subclasses of pvePanelConfig have to have
a property 'onlineHelp', which is a relative link
to the relevant documentation

if no link is given, we output 'No Help available'.

For the folder view, we have a switch statement,
because these are dynamically created and simply
from type pvePanelConfig

if an option has the property onlineHelp, this link
will be set when selecting it, so that
you have a contextual help button for the options
(e.g. directly to the backup documentation on the 'Backup' entry)

if an option does not have this property, it defaults
to the pvePanelConfig property

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