]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
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 7d990cb3d969b3487e0d9a53ce09dc8587e8ac6d..82e6a1ca6f2074a052bc95f277225115b8a3f4e2 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',