mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 15:58:20 +00:00
Add function storageIsShared
This function extracts the shared flag of the storage state.
This commit is contained in:
parent
1ce3fa3bc1
commit
01532f8dcc
@ -22,6 +22,14 @@ Ext.define('PVE.data.ResourceStore', {
|
||||
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) {
|
||||
// fixme: how to avoid those warnings
|
||||
/*jslint confusion: true */
|
||||
|
Loading…
Reference in New Issue
Block a user