Skip to content

Commit

Permalink
style(dashboard): corrects capitilisation of tools links
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTopping committed Dec 11, 2024
1 parent d32311c commit d702b49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/views/PipelineView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
<span v-else :class="routeClass(pipelineRoute)">{{ humanise(pipelineRoute) }} </span>
</div>
</traction-menu>
<span class="flex items-center text-xl pl-4 text-gray-400 text-light">{{
pipelineInfo.title
}}</span>
<span class="flex items-center text-xl pl-4 text-gray-400">{{ pipelineInfo.title }}</span>
</div>
<router-view class="mt-2" />
</div>
Expand Down Expand Up @@ -50,7 +48,7 @@ export default {
},
routeClass(route) {
return `text-black hover:bg-sdb-300 hover:text-white flex
py-1 m-0 rounded-t-md w-24 justify-center
py-1 rounded-t-md w-24 justify-center
transition-colors duration-100 ease-in-out cursor-pointer
${this.isActive(route) ? 'text-white bg-sdb-300' : 'text-black bg-gray-200'}`
},
Expand Down
25 changes: 21 additions & 4 deletions src/views/TractionDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
>
<TractionLink
v-for="route in toolRoutes"
:key="route"
:name="humanise(route)"
:link="`/${route}`"
:key="route.name"
:name="route.name"
:link="`/${route.link}`"
/>
</div>
</div>
Expand Down Expand Up @@ -131,6 +131,23 @@ const docRoutes = [
const docDropdown = ref(false)
const toolDropdown = ref(false)
const pipelineDropdown = ref(true)
const toolRoutes = ['label-printing', 'qc-results-upload', 'reception', 'labwhere-reception']
const toolRoutes = [
{
name: 'Label Printing',
link: 'label-printing',
},
{
name: 'QC Results Upload',
link: 'qc-results-upload',
},
{
name: 'Reception',
link: 'reception',
},
{
name: 'LabWhere Reception',
link: 'labwhere-reception',
},
]
const pipelines = computed(() => PipelinesConfig.filter(({ active }) => active))
</script>

0 comments on commit d702b49

Please sign in to comment.