gui: add onlineHelp for 'Prune Options'

also renamed the 'pruning' ref to 'backup-pruning' for clarity.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
This commit is contained in:
Oguz Bektas
2020-10-05 17:01:29 +02:00
committed by Thomas Lamprecht
parent dafe3197ab
commit 4c3efb532d
4 changed files with 29 additions and 25 deletions

View File

@ -3,28 +3,28 @@ const proxmoxOnlineHelpInfo = {
"link": "/docs/index.html",
"title": "Proxmox Backup Server Documentation Index"
},
"datastore-intro": {
"link": "/docs/administration-guide.html#datastore-intro",
"title": ":term:`DataStore`"
},
"user-mgmt": {
"link": "/docs/administration-guide.html#user-mgmt",
"title": "User Management"
},
"user-acl": {
"link": "/docs/administration-guide.html#user-acl",
"title": "Access Control"
},
"backup-remote": {
"link": "/docs/administration-guide.html#backup-remote",
"title": ":term:`Remote`"
},
"syncjobs": {
"link": "/docs/administration-guide.html#syncjobs",
"title": "Sync Jobs"
"backup-pruning": {
"link": "/docs/backup-client.html#backup-pruning",
"title": "Pruning and Removing Backups"
},
"chapter-zfs": {
"link": "/docs/sysadmin.html#chapter-zfs",
"title": "ZFS on Linux"
},
"syncjobs": {
"link": "/docs/managing-remotes.html#syncjobs",
"title": "Sync Jobs"
},
"datastore-intro": {
"link": "/docs/storage.html#datastore-intro",
"title": ":term:`DataStore`"
},
"user-mgmt": {
"link": "/docs/user-management.html#user-mgmt",
"title": "User Management"
},
"user-acl": {
"link": "/docs/user-management.html#user-acl",
"title": "Access Control"
}
};

View File

@ -3,9 +3,6 @@ Ext.define('PBS.DataStoreEdit', {
alias: 'widget.pbsDataStoreEdit',
mixins: ['Proxmox.Mixin.CBind'],
onlineHelp: 'datastore_intro',
subject: gettext('Datastore'),
isAdd: true,
@ -30,10 +27,16 @@ Ext.define('PBS.DataStoreEdit', {
items: {
xtype: 'tabpanel',
bodyPadding: 10,
listeners: {
tabchange: function(tb, newCard) {
Ext.GlobalEvents.fireEvent('proxmoxShowHelp', newCard.onlineHelp);
}
},
items: [
{
title: gettext('General'),
xtype: 'inputpanel',
onlineHelp: 'datastore_intro',
column1: [
{
xtype: 'pmxDisplayEditField',
@ -95,6 +98,7 @@ Ext.define('PBS.DataStoreEdit', {
{
title: gettext('Prune Options'),
xtype: 'inputpanel',
onlineHelp: 'backup_pruning',
column1: [
{
xtype: 'proxmoxintegerfield',