mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 05:35:07 +02:00
⚡ 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 providerText = this.provider ? `<b>Provider</b>: ${this.provider}` : '';
|
||||||
const lb1 = description && providerText ? '<br>' : '';
|
const lb1 = description && providerText ? '<br>' : '';
|
||||||
const hotkeyText = this.hotkey ? `<br>Press '${this.hotkey}' to launch` : '';
|
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 {
|
return {
|
||||||
content: providerText + lb1 + description + hotkeyText,
|
content: (this.isEditMode ? editText : tooltipText),
|
||||||
trigger: 'hover focus',
|
trigger: 'hover focus',
|
||||||
hideOnTargetClick: true,
|
hideOnTargetClick: true,
|
||||||
html: true,
|
html: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user