]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
copy form/DiskFormatSelector.js from manager to manager5
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
www/manager5/form/DiskFormatSelector.js [new file with mode: 0644]

diff --git a/www/manager5/form/DiskFormatSelector.js b/www/manager5/form/DiskFormatSelector.js
new file mode 100644 (file)
index 0000000..30de6ec
--- /dev/null
@@ -0,0 +1,16 @@
+Ext.define('PVE.form.DiskFormatSelector', {
+    extend: 'PVE.form.KVComboBox',
+    alias: ['widget.PVE.form.DiskFormatSelector'],
+  
+    initComponent: function() {
+       var me = this;
+
+        me.data = [ 
+           ['raw', gettext('Raw disk image') + ' (raw)'], 
+           ['qcow2', gettext('QEMU image format') + ' (qcow2)'],
+           ['vmdk', gettext('VMware image format') + ' (vmdk)']
+       ];
+
+       me.callParent();
+    }
+});