Add function storageIsShared

This function extracts the shared flag of the storage state.
This commit is contained in:
Wolfgang Link 2018-11-21 17:05:35 +01:00 committed by Thomas Lamprecht
parent 1ce3fa3bc1
commit 01532f8dcc

View File

@ -22,6 +22,14 @@ Ext.define('PVE.data.ResourceStore', {
return nodes; return nodes;
}, },
storageIsShared: function(storage_path) {
var me = this;
var index = me.findExact('id', storage_path);
return me.getAt(index).data.shared;
},
constructor: function(config) { constructor: function(config) {
// fixme: how to avoid those warnings // fixme: how to avoid those warnings
/*jslint confusion: true */ /*jslint confusion: true */