]> git.proxmox.com Git - proxmox-backup.git/commitdiff
gui: add onlineHelp for 'Prune Options'
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 5 Oct 2020 15:01:29 +0000 (17:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Oct 2020 15:12:18 +0000 (17:12 +0200)
also renamed the 'pruning' ref to 'backup-pruning' for clarity.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
docs/backup-client.rst
docs/storage.rst
www/OnlineHelpInfo.js
www/window/DataStoreEdit.js

index afa56fd8f77c50ebedcd1da41b43fd3ce9878fdd..eac7a3533e779066cbef8f453118eb2b424461d8 100644 (file)
@@ -533,7 +533,7 @@ To remove the ticket, issue a logout:
   # proxmox-backup-client logout
 
 
-.. _pruning:
+.. _backup-pruning:
 
 Pruning and Removing Backups
 ----------------------------
index 3a4875c6d67afa37bda4c14bc4a909a53d7cc521..3eb505a78233eed8b27494bb9d0098f53b69327e 100644 (file)
@@ -116,7 +116,7 @@ configured. The datastore is identified by a simple *name* and points to a
 directory on the filesystem. Each datastore also has associated retention
 settings of how many backup snapshots for each interval of ``hourly``,
 ``daily``, ``weekly``, ``monthly``, ``yearly`` as well as a time-independent
-number of backups to keep in that store. :ref:`Pruning <pruning>` and
+number of backups to keep in that store. :ref:`backup-pruning` and
 :ref:`garbage collection <garbage-collection>` can also be configured to run
 periodically based on a configured schedule (see :ref:`calendar-events`) per datastore.
 
@@ -136,7 +136,7 @@ the menu tree and clicking **Create**. Here:
 * *GC Schedule* refers to the time and intervals at which garbage collection
   runs
 * *Prune Schedule* refers to the frequency at which pruning takes place
-* *Prune Options* set the amount of backups which you would like to keep (see :ref:`Pruning <pruning>`).
+* *Prune Options* set the amount of backups which you would like to keep (see :ref:`backup-pruning`).
 
 Alternatively you can create a new datastore from the command line. The
 following command creates a new datastore called ``store1`` on :file:`/backup/disk1/store1`
index ff56553ef4fe53f47463db225d41acdf2d279c19..235c5831f323c92a1e8bda06d81ed679d379b066 100644 (file)
@@ -3,28 +3,28 @@ const proxmoxOnlineHelpInfo = {
     "link": "/docs/index.html",
     "title": "Proxmox Backup Server Documentation Index"
   },
+  "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/administration-guide.html#datastore-intro",
+    "link": "/docs/storage.html#datastore-intro",
     "title": ":term:`DataStore`"
   },
   "user-mgmt": {
-    "link": "/docs/administration-guide.html#user-mgmt",
+    "link": "/docs/user-management.html#user-mgmt",
     "title": "User Management"
   },
   "user-acl": {
-    "link": "/docs/administration-guide.html#user-acl",
+    "link": "/docs/user-management.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"
-  },
-  "chapter-zfs": {
-    "link": "/docs/sysadmin.html#chapter-zfs",
-    "title": "ZFS on Linux"
   }
 };
index f565cee551ac133aef09eaf2c05a9f21e5366e9e..c2a9527a83646c981a8e6ca3ba35384599705e3a 100644 (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',