Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notification to menu when no data is present
Browse files Browse the repository at this point in the history
hvangeffen authored and wkramer committed Dec 11, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
zakkak Foivos Zakkak
1 parent 19a962f commit 0cfeb06
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions src/components/general/ColumnMenu.vue
Original file line number Diff line number Diff line change
@@ -40,8 +40,26 @@
>
<v-list-item-title>{{ child.name }}</v-list-item-title>
<template v-slot:append>
<v-icon v-if="child.children">mdi-chevron-right</v-icon>
<v-icon v-else-if="child.icon" small>{{ child.icon }}</v-icon>
<v-tooltip v-if="child.nodata">
<template v-slot:activator="{ props }">
<v-icon v-bind="props" class="allow-disabled-hover"
>mdi-alert-octagon-outline</v-icon
>
</template>
<div v-if="child.children">
<div>{{ child.name }}'s children are missing data:</div>
<ul class="ml-4">
<li v-for="grandChild in child.children">
{{ grandChild.name }}
</li>
</ul>
</div>
<span v-else>{{ child.name }} has no data.</span>
</v-tooltip>
<div v-else>
<v-icon v-if="child.children">mdi-chevron-right</v-icon>
<v-icon v-else-if="child.icon" small>{{ child.icon }}</v-icon>
</div>
</template>
</v-list-item>
</template>
@@ -151,3 +169,9 @@ function recursiveFind(stack: ColumnItem[], id: string): boolean {
return false
}
</script>

<style scoped>
.allow-disabled-hover {
pointer-events: auto;
}
</style>

0 comments on commit 0cfeb06

Please sign in to comment.