[pve-devel] [PATCH 8/9] add clonemodeselector
Alexandre Derumier
aderumier at odiso.com
Mon Jan 21 10:51:50 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
www/manager/Makefile | 1 +
www/manager/form/CloneModeSelector.js | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
create mode 100644 www/manager/form/CloneModeSelector.js
diff --git a/www/manager/Makefile b/www/manager/Makefile
index 9e84ef1..e013fe1 100644
--- a/www/manager/Makefile
+++ b/www/manager/Makefile
@@ -49,6 +49,7 @@ JSSRC= \
form/DayOfWeekSelector.js \
form/BackupModeSelector.js \
form/ScsiHwSelector.js \
+ form/CloneModeSelector.js \
dc/Tasks.js \
dc/Log.js \
panel/StatusPanel.js \
diff --git a/www/manager/form/CloneModeSelector.js b/www/manager/form/CloneModeSelector.js
new file mode 100644
index 0000000..bf2d2c9
--- /dev/null
+++ b/www/manager/form/CloneModeSelector.js
@@ -0,0 +1,18 @@
+Ext.define('PVE.form.CloneModeSelector', {
+ extend: 'PVE.form.KVComboBox',
+ alias: ['widget.pveCloneModeSelector'],
+
+ initComponent: function() {
+ var me = this;
+ var nodename = me.nodename;
+ me.data = [
+ ['copy', 'Copy Clone']
+ ];
+
+ if(me.clonefeature){
+ me.data.push(['clone', 'Linked Clone']);
+ }
+
+ me.callParent();
+ }
+});
--
1.7.10.4
More information about the pve-devel
mailing list