added tooltip

pull/1/head
LianaHus 6 years ago
parent d9be2ba3dd
commit 95b2a13159
  1. 4
      src/app/components/vertical-icons.js
  2. 2
      src/app/panels/tab-proxy.js

@ -10,7 +10,7 @@ export class VerticalIcons {
constructor (name, appStore, homeProfile) { constructor (name, appStore, homeProfile) {
this.store = appStore this.store = appStore
this.homeProfile = homeProfile this.homeProfile = homeProfile.profile
this.events = new EventEmitter() this.events = new EventEmitter()
this.icons = {} this.icons = {}
this.iconKind = {} this.iconKind = {}
@ -74,7 +74,7 @@ export class VerticalIcons {
* @param {ModuleProfile} profile The profile of the module * @param {ModuleProfile} profile The profile of the module
*/ */
addIcon ({kind, name, icon, displayName, tooltip}) { addIcon ({kind, name, icon, displayName, tooltip}) {
let title = (displayName || name)// + (tooltip ? tooltip : "") let title = (tooltip || displayName || name)
this.icons[name] = yo` this.icons[name] = yo`
<div <div
class="${css.icon}" class="${css.icon}"

@ -117,7 +117,7 @@ export class TabProxy {
id: name, id: name,
title, title,
icon, icon,
tooltip: name tooltip: title
}) })
this._handlers[name] = { switchTo, close } this._handlers[name] = { switchTo, close }
} }

Loading…
Cancel
Save