82014ef6f1
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>
22 lines
421 B
JavaScript
22 lines
421 B
JavaScript
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();
|
|
},
|
|
});
|