Commit ef358aa7 authored by Dietmar Maurer's avatar Dietmar Maurer

GUI: dynamically update VM config every 5 seconds.

parent ed0d8d3e
......@@ -3,6 +3,8 @@ pve-manager (3.3-12) unstable; urgency=low
* add numa option to processor form
* fix rendering of pending processor values
* GUI: dynamically update VM config every 5 seconds
-- Proxmox Support Team <support@proxmox.com> Wed, 21 Jan 2015 08:39:16 +0100
......
......@@ -420,6 +420,7 @@ Ext.define('PVE.qemu.HardwareView', {
Ext.applyIf(me, {
url: '/api2/json/' + 'nodes/' + nodename + '/qemu/' + vmid + '/pending',
interval: 5000,
selModel: sm,
cwidth1: 170,
tbar: [
......@@ -479,11 +480,15 @@ Ext.define('PVE.qemu.HardwareView', {
rows: rows,
sorterFn: sorterFn,
listeners: {
show: reload,
itemdblclick: run_editor
}
});
me.callParent();
me.on('show', me.rstore.startUpdate);
me.on('hide', me.rstore.stopUpdate);
me.on('destroy', me.rstore.stopUpdate);
}
});
......@@ -351,6 +351,7 @@ Ext.define('PVE.qemu.Options', {
Ext.applyIf(me, {
url: "/api2/json/nodes/" + nodename + "/qemu/" + vmid + "/pending",
interval: 5000,
cwidth1: 170,
tbar: [ edit_btn, revert_btn ],
rows: rows,
......@@ -362,7 +363,9 @@ Ext.define('PVE.qemu.Options', {
me.callParent();
me.on('show', reload);
me.on('show', me.rstore.startUpdate);
me.on('hide', me.rstore.stopUpdate);
me.on('destroy', me.rstore.stopUpdate);
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment