ui: add Console Button
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							01ca99da2d
						
					
				
				
					commit
					653e2031d2
				
			@ -86,7 +86,15 @@ Ext.define('PBS.ServerStatus', {
 | 
			
		||||
	    iconCls: 'fa fa-power-off'
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	me.tbar = [ restartBtn, shutdownBtn, '->', { xtype: 'proxmoxRRDTypeSelector' } ];
 | 
			
		||||
	var consoleBtn = Ext.create('Proxmox.button.Button', {
 | 
			
		||||
	    text: gettext('Console'),
 | 
			
		||||
	    iconCls: 'fa fa-terminal',
 | 
			
		||||
	    handler: function() {
 | 
			
		||||
		Proxmox.Utils.openXtermJsViewer('shell', 0, Proxmox.NodeName);
 | 
			
		||||
	    }
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	me.tbar = [ consoleBtn, restartBtn, shutdownBtn, '->', { xtype: 'proxmoxRRDTypeSelector' } ];
 | 
			
		||||
 | 
			
		||||
	var rrdstore = Ext.create('Proxmox.data.RRDStore', {
 | 
			
		||||
	    rrdurl: "/api2/json/nodes/localhost/rrd",
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user