Re: [pve-devel] [PATCH manager 05/17] get storage info from /version api call in gui

2017-08-30 Thread Emmanuel Kasper
> +setStorageFormats: function(types) { > + /*jslint confusion: true*/ > + // format/select are functions elsewhere > + var me = this; > + var type,sf; > + me.storageformats = {}; > + for (type in types) { > + if (types.hasOwnProperty(type)) { > + var

Re: [pve-devel] [PATCH manager 05/17] get storage info from /version api call in gui

2017-08-29 Thread Emmanuel Kasper
On 07/19/2017 03:45 PM, Dominik Csapak wrote: > we parse and save the storage type infos in PVE.Utils.storageformats > and can get them with PVE.Utils.getStorageFormat(type) > so that we do not have to hardcode the values Thank you for bringing this forward, especially the refactoring in the new D

[pve-devel] [PATCH manager 05/17] get storage info from /version api call in gui

2017-07-19 Thread Dominik Csapak
we parse and save the storage type infos in PVE.Utils.storageformats and can get them with PVE.Utils.getStorageFormat(type) so that we do not have to hardcode the values the returned object contains: * an array formats, which contains the file/volume formats, e.g. raw, qcow2, vmdk * a default