panel: AuthView: use help link from schema if set

This can be used to set the `onlineHelp` identifier in the schema as
opposed to in the panel directly. Needed e.g. to share a panel between
PAM and PBS realm.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2024-08-23 13:07:23 +02:00 committed by Thomas Lamprecht
parent be8cb1efb4
commit b4b36ef29a

View File

@ -44,11 +44,12 @@ Ext.define('Proxmox.panel.AuthView', {
openEditWindow: function(authType, realm) { openEditWindow: function(authType, realm) {
let me = this; let me = this;
const { useTypeInUrl } = Proxmox.Schema.authDomains[authType]; const { useTypeInUrl, onlineHelp } = Proxmox.Schema.authDomains[authType];
Ext.create('Proxmox.window.AuthEditBase', { Ext.create('Proxmox.window.AuthEditBase', {
baseUrl: me.baseUrl, baseUrl: me.baseUrl,
useTypeInUrl, useTypeInUrl,
onlineHelp,
authType, authType,
realm, realm,
listeners: { listeners: {