ui: config panel: fix onlineHelp mapping targets

We currently do not support direct resolved links, and we also have
no stability guarantee for those, so the might change in pve-docs-

Switch to mapping to the chapter reference, which actually works and
is intended for stable help references.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-01-10 12:26:21 +01:00
parent d5ef2ac832
commit 7f74dabc9e

View File

@ -177,12 +177,12 @@ Ext.define('PVE.panel.Config', {
if (!me.onlineHelp) {
let typeToOnlineHelp = {
'type/lxc': 'chapter-pct.html',
'type/node': 'chapter-sysadmin.html',
'type/pool': 'chapter-pveum.html#_pools',
'type/qemu': 'chapter-qm.html',
'type/sdn': 'chapter-pvesdn.html',
'type/storage': 'chapter-pvesm.html',
'type/lxc': 'chapter_pct',
'type/node': 'chapter_system_administration',
'type/pool': 'pveum_pools',
'type/qemu': 'chapter_virtual_machines',
'type/sdn': 'chapter_pvesdn',
'type/storage': 'chapter_storage',
};
me.onlineHelp = typeToOnlineHelp[me.pveSelNode.data.id];
}