Display a different tooltip, depending on if in edit mode

This commit is contained in:
Alicia Sykes 2021-10-24 13:28:20 +01:00
parent fecd1c6493
commit 64bd506c91
1 changed files with 3 additions and 1 deletions

View File

@ -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,