mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-13 20:00:42 +00:00
Add support for Help Button in Edit windows
This commit is contained in:
parent
8aa37826e7
commit
e9ee100696
@ -238,6 +238,12 @@ Ext.define('PVE.window.Edit', {
|
|||||||
me.buttons = [ submitBtn, resetBtn ];
|
me.buttons = [ submitBtn, resetBtn ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (items[0].onlineHelp) {
|
||||||
|
var helpButton = Ext.create('PVE.button.Help');
|
||||||
|
me.buttons.unshift(helpButton, '->');
|
||||||
|
Ext.GlobalEvents.fireEvent('pveShowHelp', items[0].onlineHelp);
|
||||||
|
}
|
||||||
|
|
||||||
Ext.applyIf(me, {
|
Ext.applyIf(me, {
|
||||||
modal: true,
|
modal: true,
|
||||||
width: twoColumn ? colwidth*2 : colwidth,
|
width: twoColumn ? colwidth*2 : colwidth,
|
||||||
|
Loading…
Reference in New Issue
Block a user