mirror of
				https://git.proxmox.com/git/pve-manager
				synced 2025-11-04 10:23:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			893 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			893 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Ext.define('PVE.storage.Browser', {
 | 
						|
    extend: 'PVE.panel.Config',
 | 
						|
    alias: 'widget.PVE.storage.Browser',
 | 
						|
 | 
						|
    initComponent: function() {
 | 
						|
        var me = this;
 | 
						|
 | 
						|
	var nodename = me.pveSelNode.data.node;
 | 
						|
	if (!nodename) {
 | 
						|
	    throw "no node name specified";
 | 
						|
	}
 | 
						|
 | 
						|
	var storeid = me.pveSelNode.data.storage;
 | 
						|
	if (!storeid) {
 | 
						|
	    throw "no storage ID specified";
 | 
						|
	}
 | 
						|
 | 
						|
	Ext.apply(me, {
 | 
						|
	    title: Ext.String.format(gettext("Storage {0} on node {1}"), 
 | 
						|
				     "'" + storeid + "'", "'" + nodename + "'"),
 | 
						|
	    hstateid: 'storagetab',
 | 
						|
	    items: [
 | 
						|
		{
 | 
						|
		    title: gettext('Summary'),
 | 
						|
		    xtype: 'pveStorageSummary',
 | 
						|
		    itemId: 'summary'
 | 
						|
		},
 | 
						|
		{
 | 
						|
		    xtype: 'pveStorageContentView',
 | 
						|
		    title: gettext('Content'),
 | 
						|
		    itemId: 'content'
 | 
						|
		},
 | 
						|
		{
 | 
						|
		    title: gettext('Permissions'),
 | 
						|
		    itemId: 'permissions',
 | 
						|
		    html: 'Permissions '
 | 
						|
		}
 | 
						|
	    ]
 | 
						|
	});
 | 
						|
 | 
						|
	me.callParent();
 | 
						|
   }
 | 
						|
});
 |