api viewer: rename gloabl schema variable and tell eslint about it
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Jun 2021 12:46:32 +0000 (14:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Jun 2021 12:46:32 +0000 (14:46 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/api-viewer/APIViewer.js

index 7d990cb..82e6a1c 100644 (file)
@@ -1,3 +1,5 @@
+/*global apiSchema*/
+
 Ext.onReady(function() {
     Ext.define('pmx-param-schema', {
         extend: 'Ext.data.Model',
@@ -23,7 +25,7 @@ Ext.onReady(function() {
        }),
        proxy: {
            type: 'memory',
-           data: pmxapi,
+           data: apiSchema,
        },
        sorters: [{
            property: 'leaf',