|
|
@ -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 = [] |
|
|
|