]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Utils.js
ui/Utils: add storage schema
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Mar 2018 12:19:44 +0000 (14:19 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Wed, 28 Mar 2018 11:19:41 +0000 (13:19 +0200)
commit062a7f4955c7c7689cc8fab4878c9b6d220a8ca4
treeb7fb70f69acef5af9b0ee5da22906ac042409f8e
parent70d4f9b41eef919041502819521574d595d7c92a
ui/Utils: add storage schema

add a schema describing our storages name, the map for its
InputPanel, the icon we show in the add menu, and if it is available
at all there.

For now just use it to simplify the ugly if/else mess
format_storage_type was, future patches will use the information to
generalise Adding/Editing of those storages.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/Utils.js