Skip to content

Commit

Permalink
chore: add a tooltip explaining what beta is
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad committed Jun 19, 2023
1 parent 7ef603c commit a722f9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions desk/src/components/desk/sidebar/SidebarLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
}"
>
{{ label }}
<Badge v-if="isBeta" theme="orange" variant="subtle">beta</Badge>
<Tooltip :text="betaText">
<Badge v-if="isBeta" theme="orange" variant="subtle">beta</Badge>
</Tooltip>
</div>
</div>
</template>

<script setup lang="ts">
import { computed } from "vue";
import { Badge } from "frappe-ui";
import { useRoute, useRouter } from "vue-router";
import { Badge, Tooltip } from "frappe-ui";
import { useSidebarStore } from "@/stores/sidebar";
const props = defineProps({
Expand Down Expand Up @@ -61,6 +63,7 @@ const route = useRoute();
const router = useRouter();
const sidebarStore = useSidebarStore();
const isActive = computed(() => props.to.includes(route.name.toString()));
const betaText = "This feature is a work in progress. Use with caution";
function handle() {
props.onClick();
Expand Down

0 comments on commit a722f9e

Please sign in to comment.