[pve-devel] [PATCH manager v2 08/22] remove unused MigrateAll window
Dominik Csapak
d.csapak at proxmox.com
Mon Jan 15 15:17:56 CET 2018
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/window/MigrateAll.js | 85 ---------------------------------------
1 file changed, 85 deletions(-)
delete mode 100644 www/manager6/window/MigrateAll.js
diff --git a/www/manager6/window/MigrateAll.js b/www/manager6/window/MigrateAll.js
deleted file mode 100644
index a4ec124d..00000000
--- a/www/manager6/window/MigrateAll.js
+++ /dev/null
@@ -1,85 +0,0 @@
-Ext.define('PVE.window.MigrateAll', {
- extend: 'Ext.window.Window',
-
- resizable: false,
-
- migrate: function(target, maxworkers) {
- var me = this;
- PVE.Utils.API2Request({
- params: { target: target, maxworkers: maxworkers},
- url: '/nodes/' + me.nodename + '/' + "/migrateall",
- waitMsgTarget: me,
- method: 'POST',
- failure: function(response, opts) {
- Ext.Msg.alert('Error', response.htmlStatus);
- },
- success: function(response, options) {
- var upid = response.result.data;
-
- var win = Ext.create('PVE.window.TaskViewer', {
- upid: upid
- });
- win.show();
- me.close();
- }
- });
- },
-
- initComponent : function() {
- var me = this;
-
- if (!me.nodename) {
- throw "no node name specified";
- }
-
- me.formPanel = Ext.create('Ext.form.Panel', {
- bodyPadding: 10,
- border: false,
- fieldDefaults: {
- labelWidth: 100,
- anchor: '100%'
- },
- items: [
- {
- xtype: 'pveNodeSelector',
- name: 'target',
- disallowedNodes: [me.nodename],
- fieldLabel: 'Target node',
- allowBlank: false,
- onlineValidator: true
- },
- {
- xtype: 'pveIntegerField',
- name: 'maxworkers',
- minValue: 1,
- maxValue: 100,
- value: 1,
- fieldLabel: 'Parallel jobs',
- allowBlank: false
- }
- ]
- });
-
- var form = me.formPanel.getForm();
-
- var submitBtn = Ext.create('Ext.Button', {
- text: 'Migrate',
- handler: function() {
- var values = form.getValues();
- me.migrate(values.target, values.maxworkers);
- }
- });
-
- Ext.apply(me, {
- title: "Migrate All VMs",
- width: 350,
- modal: true,
- layout: 'auto',
- border: false,
- items: [ me.formPanel ],
- buttons: [ submitBtn ]
- });
-
- me.callParent();
- }
-});
--
2.11.0
More information about the pve-devel
mailing list