added tooltip

pull/3094/head
LianaHus 6 years ago
parent 37ab0bed27
commit e54c86e866
  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) {
this.store = appStore
this.homeProfile = homeProfile
this.homeProfile = homeProfile.profile
this.events = new EventEmitter()
this.icons = {}
this.iconKind = {}
@ -74,7 +74,7 @@ export class VerticalIcons {
* @param {ModuleProfile} profile The profile of the module
*/
addIcon ({kind, name, icon, displayName, tooltip}) {
let title = (displayName || name)// + (tooltip ? tooltip : "")
let title = (tooltip || displayName || name)
this.icons[name] = yo`
<div
class="${css.icon}"

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

Loading…
Cancel
Save