Add tooltip for project button

This commit is contained in:
Ben Haynes
2020-08-12 16:03:21 -04:00
parent a968178893
commit 0a96bebd72
2 changed files with 7 additions and 0 deletions

View File

@@ -1162,6 +1162,7 @@
"values": "Values",
"version": "Version",
"version_and_updates": "Version and Updates",
"view_project": "View Project",
"visible_all_users": "Visible for all users",
"webhook_count": "No Webhooks | 1 Webhook | {count} Webhooks",
"weeks": {

View File

@@ -6,6 +6,7 @@
ref="noopener noreferer"
class="module-bar-logo"
:class="{ loading: showLoader }"
v-tooltip.right="urlTooltip"
>
<template v-if="customLogoPath">
<transition name="fade">
@@ -51,11 +52,16 @@ export default defineComponent({
const url = computed(() => settingsStore.state.settings?.project_url);
const urlTooltip = computed(() => {
return (settingsStore.state.settings?.project_url) ? i18n.t('view_project') : false;
});
return {
customLogoPath,
showLoader,
stopSpinnerIfQueueIsEmpty,
url,
urlTooltip,
};
function stopSpinnerIfQueueIsEmpty() {