From cd2445cb394ac9a2ac5167e22732d3593f263e84 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 8 Apr 2019 17:31:03 +0200 Subject: [PATCH] ui: tfa: add onlineHelp Signed-off-by: Thomas Lamprecht --- www/manager6/dc/TFAEdit.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js index acc49350..a3dbfa1d 100644 --- a/www/manager6/dc/TFAEdit.js +++ b/www/manager6/dc/TFAEdit.js @@ -4,6 +4,8 @@ Ext.define('PVE.window.TFAEdit', { extend: 'Ext.window.Window', mixins: ['Proxmox.Mixin.CBind'], + onlineHelp: 'pveum_tfa_auth', // fake to ensure this gets a link target + modal: true, resizable: false, title: gettext('Two Factor Authentication'), @@ -445,6 +447,10 @@ Ext.define('PVE.window.TFAEdit', { ], buttons: [ + { + xtype: 'proxmoxHelpButton' + }, + '->', { text: gettext('Apply'), handler: 'applySettings', @@ -488,5 +494,7 @@ Ext.define('PVE.window.TFAEdit', { Ext.apply(me, { store: store }); me.callParent(); + + Ext.GlobalEvents.fireEvent('proxmoxShowHelp', 'pveum_tfa_auth'); } }); -- 2.39.5