proxmox-widget-toolkit/Logo.js
Dominik Csapak 82014ef6f1 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>
2020-05-18 17:03:32 +02:00

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();
},
});