mirror of
				https://git.proxmox.com/git/pmg-gui
				synced 2025-11-04 15:06:25 +00:00 
			
		
		
		
	Similar like we did for Proxmox VE's manager. The main title and version should stand a bit more out compared to simple nav/button texts. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
		
			
				
	
	
		
			38 lines
		
	
	
		
			569 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			569 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Ext.define('PMG.view.main.VersionInfo', {
 | 
						|
    extend: 'Ext.Component',
 | 
						|
    xtype: 'versioninfo',
 | 
						|
 | 
						|
    makeApiCall: true,
 | 
						|
 | 
						|
    data: {
 | 
						|
	version: false,
 | 
						|
    },
 | 
						|
 | 
						|
    style: {
 | 
						|
	'font-size': '14px',
 | 
						|
	'line-height': '18px',
 | 
						|
    },
 | 
						|
 | 
						|
    tpl: [
 | 
						|
	'Mail Gateway',
 | 
						|
	'<tpl if="version">',
 | 
						|
	' {version}',
 | 
						|
	'</tpl>',
 | 
						|
    ],
 | 
						|
 | 
						|
    initComponent: function() {
 | 
						|
	var me = this;
 | 
						|
	me.callParent();
 | 
						|
 | 
						|
	if (me.makeApiCall) {
 | 
						|
	    Proxmox.Utils.API2Request({
 | 
						|
		url: '/version',
 | 
						|
		method: 'GET',
 | 
						|
		success: function(response) {
 | 
						|
		    me.update(response.result.data);
 | 
						|
		},
 | 
						|
	    });
 | 
						|
	}
 | 
						|
    },
 | 
						|
});
 |