Add function guestNode
This function extracts the node where the guest resists.
This commit is contained in:
parent
1c0dbfacc9
commit
8bf946980d
@ -30,6 +30,14 @@ Ext.define('PVE.data.ResourceStore', {
|
||||
return me.getAt(index).data.shared;
|
||||
},
|
||||
|
||||
guestNode: function(vmid) {
|
||||
var me = this;
|
||||
|
||||
var index = me.findExact('vmid', parseInt(vmid, 10));
|
||||
|
||||
return me.getAt(index).data.node;
|
||||
},
|
||||
|
||||
constructor: function(config) {
|
||||
// fixme: how to avoid those warnings
|
||||
/*jslint confusion: true */
|
||||
|
Loading…
x
Reference in New Issue
Block a user