fix new vyper icon in tab heading

pull/5370/head
Joseph Izang 9 months ago
parent 98c5f3e6eb
commit 466a741400
  1. 14
      apps/remix-ide/src/app/panels/tab-proxy.js
  2. BIN
      apps/remix-ide/src/assets/img/vyperLogo2.webp

@ -224,9 +224,23 @@ export class TabProxy extends Plugin {
this.removeTab(oldName) this.removeTab(oldName)
} }
/**
*
* @param {string} name
* @param {string} title
* @param {Function} switchTo
* @param {Function} close
* @param {string} icon
* @param {string} description
* @returns
*/
addTab (name, title, switchTo, close, icon, description = '') { addTab (name, title, switchTo, close, icon, description = '') {
if (this._handlers[name]) return this.renderComponent() if (this._handlers[name]) return this.renderComponent()
if ((name.endsWith('.vy') && icon === undefined) || title.includes('Vyper')) {
icon = 'assets/img/vyperLogo2.webp'
}
var slash = name.split('/') var slash = name.split('/')
const tabPath = slash.reverse() const tabPath = slash.reverse()
const tempTitle = [] const tempTitle = []

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Loading…
Cancel
Save