mirror of https://github.com/lissy93/dashy
⚡ Display a different tooltip, depending on if in edit mode
This commit is contained in:
parent
fecd1c6493
commit
64bd506c91
|
@ -185,8 +185,10 @@ export default {
|
|||
const providerText = this.provider ? `<b>Provider</b>: ${this.provider}` : '';
|
||||
const lb1 = description && providerText ? '<br>' : '';
|
||||
const hotkeyText = this.hotkey ? `<br>Press '${this.hotkey}' to launch` : '';
|
||||
const tooltipText = providerText + lb1 + description + hotkeyText;
|
||||
const editText = 'Click to Edit, or right-click for more options';
|
||||
return {
|
||||
content: providerText + lb1 + description + hotkeyText,
|
||||
content: (this.isEditMode ? editText : tooltipText),
|
||||
trigger: 'hover focus',
|
||||
hideOnTargetClick: true,
|
||||
html: true,
|
||||
|
|
Loading…
Reference in New Issue