π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:lipstick: Show provider in tooltip, if available
Alicia Sykes3141565cc940
diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vueindex dbe96ca9..800c8658 100644--- a/src/components/LinkItems/Item.vue+++ b/src/components/LinkItems/Item.vue@@ -63,6 +63,7 @@ export default {color: String, // Optional text and icon color, specified in hex codebackgroundColor: String, // Optional item background colorurl: String, // URL to the resource, optional but recommended+ provider: String, // Optional provider name, for external appshotkey: Number, // Shortcut for quickly launching apptarget: { // Where resource will open, either 'newtab', 'sametab' or 'modal'type: String,@@ -131,14 +132,16 @@ export default {},/* Returns configuration object for the tooltip */getTooltipOptions() {- if (!this.description) return {}; // If no description, then skip- const hotkeyText = this.hotkey ? `\nPress '${this.hotkey}' to launch` : '';+ if (!this.description && !this.provider) return {}; // If no description, then skip+ const description = this.description ? this.description : '';+ const providerText = this.provider ? `<b>Provider</b>: ${this.provider}` : '';+ const lb1 = description && providerText ? '<br>' : '';+ const hotkeyText = this.hotkey ? `<br>Press '${this.hotkey}' to launch` : '';return {- disabled: !this.description,- content: this.description + hotkeyText,+ content: providerText + lb1 + description + hotkeyText,trigger: 'hover focus',hideOnTargetClick: true,- html: false,+ html: true,placement: this.statusResponse ? 'left' : 'auto',delay: { show: 600, hide: 200 },classes: 'item-description-tooltip',diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vueindex 51edd317..8f4206c5 100644--- a/src/components/LinkItems/Section.vue+++ b/src/components/LinkItems/Section.vue@@ -31,6 +31,7 @@:statusCheckHeaders="item.statusCheckHeaders":itemSize="newItemSize":hotkey="item.hotkey"+ :provider="item.provider":enableStatusCheck="shouldEnableStatusCheck(item.statusCheck)":statusCheckInterval="getStatusCheckInterval()":statusCheckAllowInsecure="item.statusCheckAllowInsecure"