]> git.proxmox.com Git - pve-docs.git/blobdiff - api-viewer/PVEAPI.js
fix scrot density
[pve-docs.git] / api-viewer / PVEAPI.js
index eac5bc7e3c2db7136b38f4298a3fa2a6a7eef59d..53bc36c4e105142a9b8d796204abb09e51579480 100644 (file)
@@ -354,6 +354,9 @@ Ext.onReady(function() {
                        permhtml += "Unknown systax!";
                    }
                }
+               if (!info.allowtoken) {
+                   permhtml += "<br />This API endpoint is not available for API tokens."
+               }
 
                sections.push({
                    title: 'Required permissions',
@@ -383,7 +386,11 @@ Ext.onReady(function() {
     Ext.define('Ext.form.SearchField', {
        extend: 'Ext.form.field.Text',
        alias: 'widget.searchfield',
-       emptyText: 'Search',
+
+       emptyText: 'Search...',
+
+       flex: 1,
+
        inputType: 'search',
        listeners: {
            'change': function(){
@@ -412,15 +419,15 @@ Ext.onReady(function() {
        tools: [
            {
                type: 'expand',
-               handler: function() {
-                  tree.expandAll();
-               },
+               tooltip: 'Expand all',
+               tooltipType: 'title',
+               callback: (tree) => tree.expandAll(),
            },
            {
                type: 'collapse',
-               handler: function() {
-                  tree.collapseAll();
-               }
+               tooltip: 'Collapse all',
+               tooltipType: 'title',
+               callback: (tree) => tree.collapseAll(),
            },
        ],
         store: store,