add PMX.image.Logo
copied from pmg-gui, adapted to be able to set a custom url prefix when we want to use something other than '/pve2' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8ae2f8c8b1
commit
82014ef6f1
21
Logo.js
Normal file
21
Logo.js
Normal file
@ -0,0 +1,21 @@
|
||||
Ext.define('PMX.image.Logo', {
|
||||
extend: 'Ext.Img',
|
||||
xtype: 'proxmoxlogo',
|
||||
|
||||
height: 30,
|
||||
width: 172,
|
||||
src: '/images/proxmox_logo.png',
|
||||
alt: 'Proxmox',
|
||||
autoEl: {
|
||||
tag: 'a',
|
||||
href: 'https://www.proxmox.com',
|
||||
target: '_blank',
|
||||
},
|
||||
|
||||
initComponent: function() {
|
||||
let me = this;
|
||||
let prefix = me.prefix !== undefined ? me.prefix : '/pve2';
|
||||
me.src = prefix + me.src;
|
||||
me.callParent();
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user