[pve-devel] [PATCH manager v2 1/4] move onlineHelp into classes from definition
Dominik Csapak
d.csapak at proxmox.com
Wed Nov 2 16:57:10 CET 2016
this patch moves the onlineHelp ids into the javascript classes, instead
of defining them where we use the classes
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/ceph/Config.js | 2 ++
www/manager6/ceph/Monitor.js | 2 ++
www/manager6/ceph/OSD.js | 1 +
www/manager6/ceph/Pool.js | 1 +
www/manager6/ceph/Status.js | 1 +
www/manager6/dc/ACLView.js | 2 ++
www/manager6/dc/AuthView.js | 2 ++
www/manager6/dc/Backup.js | 2 ++
www/manager6/dc/Config.js | 20 +-------------------
www/manager6/dc/GroupView.js | 2 ++
www/manager6/dc/OptionView.js | 2 ++
www/manager6/dc/PoolView.js | 2 ++
www/manager6/dc/RoleView.js | 2 ++
www/manager6/dc/StorageView.js | 2 ++
www/manager6/dc/Support.js | 1 +
www/manager6/dc/UserView.js | 2 ++
www/manager6/grid/BackupView.js | 1 +
www/manager6/grid/FirewallAliases.js | 2 ++
www/manager6/grid/FirewallRules.js | 2 ++
www/manager6/ha/Fencing.js | 2 ++
www/manager6/ha/Groups.js | 2 ++
www/manager6/ha/Resources.js | 2 ++
www/manager6/ha/StatusView.js | 2 ++
www/manager6/lxc/Config.js | 10 ----------
www/manager6/lxc/CreateWizard.js | 1 -
www/manager6/lxc/DNS.js | 2 ++
www/manager6/lxc/Network.js | 2 ++
www/manager6/lxc/Options.js | 2 ++
www/manager6/lxc/Resources.js | 2 ++
www/manager6/lxc/SnapshotTree.js | 2 ++
www/manager6/node/APT.js | 2 ++
www/manager6/node/Config.js | 11 -----------
www/manager6/node/DNSView.js | 2 ++
www/manager6/node/NetworkView.js | 2 ++
www/manager6/node/ServiceView.js | 2 ++
www/manager6/node/Subscription.js | 2 ++
www/manager6/panel/IPSet.js | 2 ++
www/manager6/pool/Config.js | 1 -
www/manager6/qemu/Config.js | 7 -------
www/manager6/qemu/HardwareView.js | 2 ++
www/manager6/qemu/Options.js | 2 ++
www/manager6/storage/Browser.js | 1 -
42 files changed, 66 insertions(+), 50 deletions(-)
diff --git a/www/manager6/ceph/Config.js b/www/manager6/ceph/Config.js
index 87a87c9..d89f3fd 100644
--- a/www/manager6/ceph/Config.js
+++ b/www/manager6/ceph/Config.js
@@ -48,6 +48,8 @@ Ext.define('PVE.node.CephConfigCrush', {
extend: 'Ext.panel.Panel',
alias: 'widget.pveNodeCephConfigCrush',
+ onlineHelp: 'chapter_pveceph',
+
layout: 'border',
items: [{
title: gettext('Ceph Config'),
diff --git a/www/manager6/ceph/Monitor.js b/www/manager6/ceph/Monitor.js
index 23acaaf..4017b4e 100644
--- a/www/manager6/ceph/Monitor.js
+++ b/www/manager6/ceph/Monitor.js
@@ -51,6 +51,8 @@ Ext.define('PVE.node.CephMonList', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveNodeCephMonList'],
+ onlineHelp: 'chapter_pveceph',
+
initComponent: function() {
var me = this;
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index c9210fa..4244459 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -164,6 +164,7 @@ Ext.define('PVE.CephRemoveOsd', {
Ext.define('PVE.node.CephOsdTree', {
extend: 'Ext.tree.Panel',
alias: ['widget.pveNodeCephOsdTree'],
+ onlineHelp: 'chapter_pveceph',
columns: [
{
xtype: 'treecolumn',
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index 8aaf5c9..c4e8dff 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -72,6 +72,7 @@ Ext.define('PVE.node.CephPoolList', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveNodeCephPoolList'],
+ onlineHelp: 'chapter_pveceph',
stateful: false,
bufferedRenderer: false,
features: [ { ftype: 'summary'} ],
diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index 171cc2a..ab97a9f 100644
--- a/www/manager6/ceph/Status.js
+++ b/www/manager6/ceph/Status.js
@@ -1,6 +1,7 @@
Ext.define('PVE.node.CephStatus', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pveNodeCephStatus'],
+ onlineHelp: 'chapter_pveceph',
cwidth1: 150,
interval: 3000,
initComponent: function() {
diff --git a/www/manager6/dc/ACLView.js b/www/manager6/dc/ACLView.js
index 11fff56..9ec9f68 100644
--- a/www/manager6/dc/ACLView.js
+++ b/www/manager6/dc/ACLView.js
@@ -73,6 +73,8 @@ Ext.define('PVE.dc.ACLView', {
alias: ['widget.pveACLView'],
+ onlineHelp: 'chapter_user_management',
+
// use fixed path
path: undefined,
diff --git a/www/manager6/dc/AuthView.js b/www/manager6/dc/AuthView.js
index 70ef226..13c033c 100644
--- a/www/manager6/dc/AuthView.js
+++ b/www/manager6/dc/AuthView.js
@@ -3,6 +3,8 @@ Ext.define('PVE.dc.AuthView', {
alias: ['widget.pveAuthView'],
+ onlineHelp: 'pveum_authentication_realms',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 6f42ac3..54eca4b 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -322,6 +322,8 @@ Ext.define('PVE.dc.BackupView', {
alias: ['widget.pveDcBackupView'],
+ onlineHelp: 'chapter_vzdump',
+
allText: '-- ' + gettext('All') + ' --',
allExceptText: gettext('All except {0}'),
diff --git a/www/manager6/dc/Config.js b/www/manager6/dc/Config.js
index d4dbdcf..f7097e0 100644
--- a/www/manager6/dc/Config.js
+++ b/www/manager6/dc/Config.js
@@ -29,9 +29,8 @@ Ext.define('PVE.dc.Config', {
});
me.items.push({
- xtype: 'pveDcOptionView',
+ xtype: 'pveDcOptionView',
title: gettext('Options'),
- onlineHelp: 'datacenter_configuration_file',
iconCls: 'fa fa-gear',
itemId: 'options'
});
@@ -41,7 +40,6 @@ Ext.define('PVE.dc.Config', {
me.items.push({
xtype: 'pveStorageView',
title: gettext('Storage'),
- onlineHelp: 'chapter_storage',
iconCls: 'fa fa-database',
itemId: 'storage'
});
@@ -51,7 +49,6 @@ Ext.define('PVE.dc.Config', {
me.items.push({
xtype: 'pveDcBackupView',
iconCls: 'fa fa-floppy-o',
- onlineHelp: 'chapter_vzdump',
title: gettext('Backup'),
itemId: 'backup'
},
@@ -59,7 +56,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveACLView',
title: gettext('Permissions'),
iconCls: 'fa fa-unlock',
- onlineHelp: 'chapter_user_management',
itemId: 'permissions',
expandedOnInit: true
});
@@ -69,7 +65,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveUserView',
groups: ['permissions'],
iconCls: 'fa fa-user',
- onlineHelp: 'pveum_users',
title: gettext('Users'),
itemId: 'users'
});
@@ -79,7 +74,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveGroupView',
title: gettext('Groups'),
iconCls: 'fa fa-users',
- onlineHelp: 'pveum_groups',
groups: ['permissions'],
itemId: 'groups'
},
@@ -87,7 +81,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pvePoolView',
title: gettext('Pools'),
iconCls: 'fa fa-tags',
- onlineHelp: 'pveum_pools',
groups: ['permissions'],
itemId: 'pools'
},
@@ -95,7 +88,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveRoleView',
title: gettext('Roles'),
iconCls: 'fa fa-male',
- onlineHelp: 'pveum_roles',
groups: ['permissions'],
itemId: 'roles'
},
@@ -103,7 +95,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveAuthView',
title: gettext('Authentication'),
groups: ['permissions'],
- onlineHelp: 'pveum_authentication_realms',
iconCls: 'fa fa-key',
itemId: 'domains'
},
@@ -111,14 +102,12 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveHAStatusView',
title: 'HA',
iconCls: 'fa fa-heartbeat',
- onlineHelp: 'chapter_ha_manager',
itemId: 'ha'
},
{
title: gettext('Resources'),
groups: ['ha'],
iconCls: 'fa fa-th',
- onlineHelp: 'ha_manager_resources',
xtype: 'pveHAResourcesView',
itemId: 'resources'
},
@@ -126,7 +115,6 @@ Ext.define('PVE.dc.Config', {
title: gettext('Groups'),
groups: ['ha'],
xtype: 'pveHAGroupsView',
- onlineHelp: 'ha_manager_groups',
iconCls: 'fa fa-object-group',
itemId: 'ha-groups'
},
@@ -134,7 +122,6 @@ Ext.define('PVE.dc.Config', {
title: gettext('Fencing'),
groups: ['ha'],
iconCls: 'fa fa-bolt',
- onlineHelp: 'ha_manager_fencing',
xtype: 'pveFencingView',
itemId: 'ha-fencing'
},
@@ -145,7 +132,6 @@ Ext.define('PVE.dc.Config', {
base_url: '/cluster/firewall/rules',
list_refs_url: '/cluster/firewall/refs',
iconCls: 'fa fa-shield',
- onlineHelp: 'chapter_pve_firewall',
itemId: 'firewall'
},
{
@@ -163,7 +149,6 @@ Ext.define('PVE.dc.Config', {
title: gettext('Security Group'),
groups: ['firewall'],
iconCls: 'fa fa-group',
- onlineHelp: 'pve_firewall_security_groups',
itemId: 'firewall-sg'
},
{
@@ -171,7 +156,6 @@ Ext.define('PVE.dc.Config', {
title: gettext('Alias'),
groups: ['firewall'],
iconCls: 'fa fa-external-link',
- onlineHelp: 'pve_firewall_ip_aliases',
base_url: '/cluster/firewall/aliases',
itemId: 'firewall-aliases'
},
@@ -180,7 +164,6 @@ Ext.define('PVE.dc.Config', {
title: 'IPSet',
groups: ['firewall'],
iconCls: 'fa fa-list-ol',
- onlineHelp: 'pve_firewall_ip_sets',
base_url: '/cluster/firewall/ipset',
list_refs_url: '/cluster/firewall/refs',
itemId: 'firewall-ipset'
@@ -189,7 +172,6 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveDcSupport',
title: gettext('Support'),
itemId: 'support',
- onlineHelp: 'getting_help',
iconCls: 'fa fa-comments-o'
});
}
diff --git a/www/manager6/dc/GroupView.js b/www/manager6/dc/GroupView.js
index 0e412db..b0f71b1 100644
--- a/www/manager6/dc/GroupView.js
+++ b/www/manager6/dc/GroupView.js
@@ -3,6 +3,8 @@ Ext.define('PVE.dc.GroupView', {
alias: ['widget.pveGroupView'],
+ onlineHelp: 'pveum_groups',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js
index 9c16966..a24b542 100644
--- a/www/manager6/dc/OptionView.js
+++ b/www/manager6/dc/OptionView.js
@@ -129,6 +129,8 @@ Ext.define('PVE.dc.OptionView', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pveDcOptionView'],
+ onlineHelp: 'datacenter_configuration_file',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/dc/PoolView.js b/www/manager6/dc/PoolView.js
index a65944c..2eaec10 100644
--- a/www/manager6/dc/PoolView.js
+++ b/www/manager6/dc/PoolView.js
@@ -3,6 +3,8 @@ Ext.define('PVE.dc.PoolView', {
alias: ['widget.pvePoolView'],
+ onlineHelp: 'pveum_pools',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/dc/RoleView.js b/www/manager6/dc/RoleView.js
index 26a241f..78968e3 100644
--- a/www/manager6/dc/RoleView.js
+++ b/www/manager6/dc/RoleView.js
@@ -3,6 +3,8 @@ Ext.define('PVE.dc.RoleView', {
alias: ['widget.pveRoleView'],
+ onlineHelp: 'pveum_roles',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js
index 86d23bd..39b9233 100644
--- a/www/manager6/dc/StorageView.js
+++ b/www/manager6/dc/StorageView.js
@@ -4,6 +4,8 @@ Ext.define('PVE.dc.StorageView', {
alias: ['widget.pveStorageView'],
+ onlineHelp: 'chapter_storage',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/dc/Support.js b/www/manager6/dc/Support.js
index d55ed01..2c80e3e 100644
--- a/www/manager6/dc/Support.js
+++ b/www/manager6/dc/Support.js
@@ -2,6 +2,7 @@ Ext.define('PVE.dc.Support', {
extend: 'Ext.panel.Panel',
alias: 'widget.pveDcSupport',
pveGuidePath: '/pve-docs/index.html',
+ onlineHelp: 'getting_help',
invalidHtml: '<h1>No valid subscription</h1>' + PVE.Utils.noSubKeyHtml,
diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index 291c52b..0aa8828 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -56,6 +56,8 @@ Ext.define('PVE.dc.UserView', {
alias: ['widget.pveUserView'],
+ onlineHelp: 'pveum_users',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index 2f67337..ed26874 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -3,6 +3,7 @@ Ext.define('PVE.grid.BackupView', {
alias: ['widget.pveBackupView'],
+ onlineHelp: 'chapter_vzdump',
initComponent : function() {
var me = this;
diff --git a/www/manager6/grid/FirewallAliases.js b/www/manager6/grid/FirewallAliases.js
index 9af9c52..a9329af 100644
--- a/www/manager6/grid/FirewallAliases.js
+++ b/www/manager6/grid/FirewallAliases.js
@@ -1,6 +1,8 @@
Ext.define('PVE.FirewallAliasEdit', {
extend: 'PVE.window.Edit',
+ onlineHelp: 'pve_firewall_ip_aliases',
+
base_url: undefined,
alias_name: undefined,
diff --git a/www/manager6/grid/FirewallRules.js b/www/manager6/grid/FirewallRules.js
index 52057ee..55342e8 100644
--- a/www/manager6/grid/FirewallRules.js
+++ b/www/manager6/grid/FirewallRules.js
@@ -377,6 +377,8 @@ Ext.define('PVE.FirewallRules', {
extend: 'Ext.grid.Panel',
alias: 'widget.pveFirewallRules',
+ onlineHelp: 'chapter_pve_firewall',
+
base_url: undefined,
list_refs_url: undefined,
diff --git a/www/manager6/ha/Fencing.js b/www/manager6/ha/Fencing.js
index 1238fbc..164e7fe 100644
--- a/www/manager6/ha/Fencing.js
+++ b/www/manager6/ha/Fencing.js
@@ -2,6 +2,8 @@ Ext.define('PVE.ha.FencingView', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveFencingView'],
+ onlineHelp: 'ha_manager_fencing',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/ha/Groups.js b/www/manager6/ha/Groups.js
index 2d94306..c218616 100644
--- a/www/manager6/ha/Groups.js
+++ b/www/manager6/ha/Groups.js
@@ -2,6 +2,8 @@ Ext.define('PVE.ha.GroupsView', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveHAGroupsView'],
+ onlineHelp: 'ha_manager_groups',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
index 6373473..df26788 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -2,6 +2,8 @@ Ext.define('PVE.ha.ResourcesView', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveHAResourcesView'],
+ onlineHelp: 'ha_manager_resources',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/ha/StatusView.js b/www/manager6/ha/StatusView.js
index 1032fab..1426961 100644
--- a/www/manager6/ha/StatusView.js
+++ b/www/manager6/ha/StatusView.js
@@ -2,6 +2,8 @@ Ext.define('PVE.ha.StatusView', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveHAStatusView'],
+ onlineHelp: 'chapter_ha_manager',
+
sortPriority: {
quorum: 1,
master: 2,
diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 5d5285c..dbd6641 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -153,7 +153,6 @@ Ext.define('PVE.lxc.Config', {
{
title: gettext('Resources'),
itemId: 'resources',
- onlineHelp: 'pct_configuration',
expandedOnInit: true,
iconCls: 'fa fa-cube',
xtype: 'pveLxcRessourceView'
@@ -161,21 +160,18 @@ Ext.define('PVE.lxc.Config', {
{
title: gettext('Network'),
iconCls: 'fa fa-exchange',
- onlineHelp: 'pct_container_network',
itemId: 'network',
xtype: 'pveLxcNetworkView'
},
{
title: gettext('DNS'),
iconCls: 'fa fa-globe',
- onlineHelp: 'pct_container_network',
itemId: 'dns',
xtype: 'pveLxcDNS'
},
{
title: gettext('Options'),
itemId: 'options',
- onlineHelp: 'pct_options',
iconCls: 'fa fa-gear',
xtype: 'pveLxcOptions'
},
@@ -192,7 +188,6 @@ Ext.define('PVE.lxc.Config', {
me.items.push({
title: gettext('Backup'),
iconCls: 'fa fa-floppy-o',
- onlineHelp: 'chapter_vzdump',
xtype: 'pveBackupView',
itemId: 'backup'
});
@@ -202,7 +197,6 @@ Ext.define('PVE.lxc.Config', {
me.items.push({
title: gettext('Snapshots'),
iconCls: 'fa fa-history',
- onlineHelp: 'pct_snapshots',
xtype: 'pveLxcSnapshotTree',
itemId: 'snapshot'
});
@@ -213,7 +207,6 @@ Ext.define('PVE.lxc.Config', {
{
xtype: 'pveFirewallRules',
title: gettext('Firewall'),
- onlineHelp: 'chapter_pve_firewall',
iconCls: 'fa fa-shield',
allow_iface: true,
base_url: base_url + '/firewall/rules',
@@ -235,7 +228,6 @@ Ext.define('PVE.lxc.Config', {
title: gettext('Alias'),
groups: ['firewall'],
iconCls: 'fa fa-external-link',
- onlineHelp: 'pve_firewall_ip_aliases',
base_url: base_url + '/firewall/aliases',
itemId: 'firewall-aliases'
},
@@ -244,7 +236,6 @@ Ext.define('PVE.lxc.Config', {
title: gettext('IPSet'),
groups: ['firewall'],
iconCls: 'fa fa-list-ol',
- onlineHelp: 'pve_firewall_ip_sets',
base_url: base_url + '/firewall/ipset',
list_refs_url: base_url + '/firewall/refs',
itemId: 'firewall-ipset'
@@ -267,7 +258,6 @@ Ext.define('PVE.lxc.Config', {
title: gettext('Permissions'),
itemId: 'permissions',
iconCls: 'fa fa-unlock',
- onlineHelp: 'chapter_user_management',
path: '/vms/' + vmid
});
}
diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index 5e8e429..d3981a9 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -68,7 +68,6 @@ Ext.define('PVE.lxc.CreateWizard', {
title: gettext('Network'),
insideWizard: true,
dataCache: {},
- onlineHelp: 'pct_container_network',
create: true
});
diff --git a/www/manager6/lxc/DNS.js b/www/manager6/lxc/DNS.js
index eaf1719..08e63e0 100644
--- a/www/manager6/lxc/DNS.js
+++ b/www/manager6/lxc/DNS.js
@@ -137,6 +137,8 @@ Ext.define('PVE.lxc.DNS', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pveLxcDNS'],
+ onlineHelp: 'pct_container_network',
+
initComponent : function() {
var me = this;
var i;
diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 3c8541a..1419a9e 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -329,6 +329,8 @@ Ext.define('PVE.lxc.NetworkView', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveLxcNetworkView'],
+ onlineHelp: 'pct_container_network',
+
dataCache: {}, // used to store result of last load
load: function() {
diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index d757540..8871554 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -3,6 +3,8 @@ Ext.define('PVE.lxc.Options', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pveLxcOptions'],
+ onlineHelp: 'pct_options',
+
initComponent : function() {
var me = this;
var i;
diff --git a/www/manager6/lxc/Resources.js b/www/manager6/lxc/Resources.js
index d7a4ba2..c54c700 100644
--- a/www/manager6/lxc/Resources.js
+++ b/www/manager6/lxc/Resources.js
@@ -3,6 +3,8 @@ Ext.define('PVE.lxc.RessourceView', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pveLxcRessourceView'],
+ onlineHelp: 'pct_configuration',
+
renderKey: function(key, metaData, rec, rowIndex, colIndex, store) {
var me = this;
var rows = me.rows;
diff --git a/www/manager6/lxc/SnapshotTree.js b/www/manager6/lxc/SnapshotTree.js
index 1164495..ab9c81b 100644
--- a/www/manager6/lxc/SnapshotTree.js
+++ b/www/manager6/lxc/SnapshotTree.js
@@ -2,6 +2,8 @@ Ext.define('PVE.lxc.SnapshotTree', {
extend: 'Ext.tree.Panel',
alias: ['widget.pveLxcSnapshotTree'],
+ onlineHelp: 'pct_snapshots',
+
load_delay: 3000,
old_digest: 'invalid',
diff --git a/www/manager6/node/APT.js b/www/manager6/node/APT.js
index 3afca02..7d54d14 100644
--- a/www/manager6/node/APT.js
+++ b/www/manager6/node/APT.js
@@ -3,6 +3,8 @@ Ext.define('PVE.node.APT', {
alias: ['widget.pveNodeAPT'],
+ onlineHelp: 'sysadmin_package_repositories',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js
index bf9d176..e30e106 100644
--- a/www/manager6/node/Config.js
+++ b/www/manager6/node/Config.js
@@ -160,7 +160,6 @@ Ext.define('PVE.node.Config', {
title: gettext('System'),
iconCls: 'fa fa-cogs',
itemId: 'services',
- onlineHelp: 'pve_service_daemons',
expandedOnInit: true,
xtype: 'pveNodeServiceView'
},
@@ -168,7 +167,6 @@ Ext.define('PVE.node.Config', {
title: gettext('Network'),
iconCls: 'fa fa-exchange',
itemId: 'network',
- onlineHelp: 'sysadmin_network_configuration',
groups: ['services'],
xtype: 'pveNodeNetworkView'
},
@@ -177,7 +175,6 @@ Ext.define('PVE.node.Config', {
iconCls: 'fa fa-globe',
groups: ['services'],
itemId: 'dns',
- onlineHelp: 'sysadmin_network_configuration',
xtype: 'pveNodeDNSView'
},
{
@@ -207,7 +204,6 @@ Ext.define('PVE.node.Config', {
iconCls: 'fa fa-refresh',
disabled: !caps.nodes['Sys.Console'],
// do we want to link to system updates instead?
- onlineHelp: 'sysadmin_package_repositories',
itemId: 'apt',
xtype: 'pveNodeAPT',
nodename: nodename
@@ -220,7 +216,6 @@ Ext.define('PVE.node.Config', {
{
xtype: 'pveFirewallRules',
iconCls: 'fa fa-shield',
- onlineHelp: 'chapter_pve_firewall',
title: gettext('Firewall'),
allow_iface: true,
base_url: '/nodes/' + nodename + '/firewall/rules',
@@ -252,7 +247,6 @@ Ext.define('PVE.node.Config', {
{
title: 'Ceph',
itemId: 'ceph',
- onlineHelp: 'chapter_pveceph',
iconCls: 'fa fa-ceph',
xtype: 'pveNodeCephStatus'
},
@@ -260,7 +254,6 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephConfigCrush',
title: gettext('Config'),
iconCls: 'fa fa-gear',
- onlineHelp: 'chapter_pveceph',
groups: ['ceph'],
itemId: 'ceph-config'
},
@@ -268,7 +261,6 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephMonList',
title: gettext('Monitor'),
iconCls: 'fa fa-tv',
- onlineHelp: 'chapter_pveceph',
groups: ['ceph'],
itemId: 'ceph-monlist'
},
@@ -276,7 +268,6 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephOsdTree',
title: 'OSD',
iconCls: 'fa fa-hdd-o',
- onlineHelp: 'chapter_pveceph',
groups: ['ceph'],
itemId: 'ceph-osdtree'
},
@@ -284,7 +275,6 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephPoolList',
title: gettext('Pools'),
iconCls: 'fa fa-sitemap',
- onlineHelp: 'chapter_pveceph',
groups: ['ceph'],
itemId: 'ceph-pools'
}
@@ -324,7 +314,6 @@ Ext.define('PVE.node.Config', {
title: gettext('Subscription'),
iconCls: 'fa fa-support',
itemId: 'support',
- onlineHelp: 'getting_help',
xtype: 'pveNodeSubscription',
nodename: nodename
}
diff --git a/www/manager6/node/DNSView.js b/www/manager6/node/DNSView.js
index 07c479b..9e9683a 100644
--- a/www/manager6/node/DNSView.js
+++ b/www/manager6/node/DNSView.js
@@ -2,6 +2,8 @@ Ext.define('PVE.node.DNSView', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pveNodeDNSView'],
+ onlineHelp: 'sysadmin_network_configuration',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/node/NetworkView.js b/www/manager6/node/NetworkView.js
index 5fbc947..26ae7e9 100644
--- a/www/manager6/node/NetworkView.js
+++ b/www/manager6/node/NetworkView.js
@@ -3,6 +3,8 @@ Ext.define('PVE.node.NetworkView', {
alias: ['widget.pveNodeNetworkView'],
+ onlineHelp: 'sysadmin_network_configuration',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/node/ServiceView.js b/www/manager6/node/ServiceView.js
index c183748..a676280 100644
--- a/www/manager6/node/ServiceView.js
+++ b/www/manager6/node/ServiceView.js
@@ -3,6 +3,8 @@ Ext.define('PVE.node.ServiceView', {
alias: ['widget.pveNodeServiceView'],
+ onlineHelp: 'pve_service_daemons',
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/node/Subscription.js b/www/manager6/node/Subscription.js
index 8309693..528ecad 100644
--- a/www/manager6/node/Subscription.js
+++ b/www/manager6/node/Subscription.js
@@ -23,6 +23,8 @@ Ext.define('PVE.node.Subscription', {
alias: ['widget.pveNodeSubscription'],
+ onlineHelp: 'getting_help',
+
features: [ {ftype: 'selectable'}],
showReport: function() {
diff --git a/www/manager6/panel/IPSet.js b/www/manager6/panel/IPSet.js
index 842ec2c..59a45c4 100644
--- a/www/manager6/panel/IPSet.js
+++ b/www/manager6/panel/IPSet.js
@@ -432,6 +432,8 @@ Ext.define('PVE.IPSet', {
title: 'IPSet',
+ onlineHelp: 'pve_firewall_ip_sets',
+
list_refs_url: undefined,
initComponent: function() {
diff --git a/www/manager6/pool/Config.js b/www/manager6/pool/Config.js
index 57e6829..fedf25b 100644
--- a/www/manager6/pool/Config.js
+++ b/www/manager6/pool/Config.js
@@ -33,7 +33,6 @@ Ext.define('PVE.pool.Config', {
xtype: 'pveACLView',
title: gettext('Permissions'),
iconCls: 'fa fa-unlock',
- onlineHelp: 'chapter_user_management',
itemId: 'permissions',
path: '/pool/' + pool
}
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index e3d277a..aaf0eca 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -162,14 +162,12 @@ Ext.define('PVE.qemu.Config', {
{
title: gettext('Hardware'),
itemId: 'hardware',
- onlineHelp: 'qm_virtual_machines_settings',
iconCls: 'fa fa-desktop',
xtype: 'PVE.qemu.HardwareView'
},
{
title: gettext('Options'),
iconCls: 'fa fa-gear',
- onlineHelp: 'qm_options',
itemId: 'options',
xtype: 'PVE.qemu.Options'
},
@@ -196,7 +194,6 @@ Ext.define('PVE.qemu.Config', {
title: gettext('Backup'),
iconCls: 'fa fa-floppy-o',
xtype: 'pveBackupView',
- onlineHelp: 'chapter_vzdump',
itemId: 'backup'
});
}
@@ -216,7 +213,6 @@ Ext.define('PVE.qemu.Config', {
xtype: 'pveFirewallRules',
title: gettext('Firewall'),
iconCls: 'fa fa-shield',
- onlineHelp: 'chapter_pve_firewall',
allow_iface: true,
base_url: base_url + '/firewall/rules',
list_refs_url: base_url + '/firewall/refs',
@@ -237,7 +233,6 @@ Ext.define('PVE.qemu.Config', {
title: gettext('Alias'),
groups: ['firewall'],
iconCls: 'fa fa-external-link',
- onlineHelp: 'pve_firewall_ip_aliases',
base_url: base_url + '/firewall/aliases',
itemId: 'firewall-aliases'
},
@@ -246,7 +241,6 @@ Ext.define('PVE.qemu.Config', {
title: gettext('IPSet'),
groups: ['firewall'],
iconCls: 'fa fa-list-ol',
- onlineHelp: 'pve_firewall_ip_sets',
base_url: base_url + '/firewall/ipset',
list_refs_url: base_url + '/firewall/refs',
itemId: 'firewall-ipset'
@@ -268,7 +262,6 @@ Ext.define('PVE.qemu.Config', {
xtype: 'pveACLView',
title: gettext('Permissions'),
iconCls: 'fa fa-unlock',
- onlineHelp: 'chapter_user_management',
itemId: 'permissions',
path: '/vms/' + vmid
});
diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 42dcb27..451ce38 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -4,6 +4,8 @@ Ext.define('PVE.qemu.HardwareView', {
extend: 'PVE.grid.PendingObjectGrid',
alias: ['widget.PVE.qemu.HardwareView'],
+ onlineHelp: 'qm_virtual_machines_settings',
+
renderKey: function(key, metaData, rec, rowIndex, colIndex, store) {
var me = this;
var rows = me.rows;
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index f60654d..7c6721d 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -3,6 +3,8 @@ Ext.define('PVE.qemu.Options', {
extend: 'PVE.grid.PendingObjectGrid',
alias: ['widget.PVE.qemu.Options'],
+ onlineHelp: 'qm_options',
+
initComponent : function() {
var me = this;
var i;
diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js
index 0b58265..1cb50dd 100644
--- a/www/manager6/storage/Browser.js
+++ b/www/manager6/storage/Browser.js
@@ -49,7 +49,6 @@ Ext.define('PVE.storage.Browser', {
xtype: 'pveACLView',
title: gettext('Permissions'),
iconCls: 'fa fa-unlock',
- onlineHelp: 'chapter_user_management',
itemId: 'permissions',
path: '/storage/' + storeid
});
--
2.1.4
More information about the pve-devel
mailing list