Skip to content
Snippets Groups Projects
Commit 2db6803b authored by Muhammad Arsalan's avatar Muhammad Arsalan
Browse files

:lipstick: Fix stars color to blue only

parent beb31892
No related branches found
No related tags found
No related merge requests found
......@@ -6,30 +6,25 @@
v-bind="props"
v-for="i in stars"
:key="i"
:color="starColor[stars]"
color="info"
icon="mdi-star"
></v-icon>
<v-icon
v-bind="props"
v-for="i in 3 - stars"
:key="i"
:color="starColor[stars]"
color="info"
icon="mdi-star-outline"
></v-icon>
</template>
</v-tooltip>
</span>
<span v-else>
<v-icon
v-for="i in stars"
:key="i"
:color="starColor[stars]"
icon="mdi-star"
></v-icon>
<v-icon v-for="i in stars" :key="i" color="info" icon="mdi-star"></v-icon>
<v-icon
v-for="i in 3 - stars"
:key="i"
:color="starColor[stars]"
color="info"
icon="mdi-star-outline"
></v-icon>
</span>
......@@ -47,11 +42,4 @@ const tooltipText = {
2: "Manually annotated by a third party",
3: "Manually annotated by the ChEBI Team",
};
const starColor = {
0: "red",
1: "warning",
2: "warning",
3: "info",
};
</script>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment