Add function guestNode

This function extracts the node where the guest resists.
This commit is contained in:
Wolfgang Link 2018-11-21 17:05:36 +01:00 committed by Thomas Lamprecht
parent 1c0dbfacc9
commit 8bf946980d

View File

@ -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 */