Skip to content

Commit

Permalink
jobs status
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoragrega committed Oct 21, 2021
1 parent 74334a7 commit f5945c8
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions client/src/components/ReviewMerged.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,28 @@
<v-card-actions>
<v-container fluid class="pa-0">
<v-btn class="ma-2" elevation="2" small outlined :href="review.web_url" target="blank">WEB</v-btn>
<!--TOOD pop over menu?-->
<v-tooltip bottom v-for="stage in pipeline.stages" v-bind:key="`merged-${pipeline.id}-${stage.name}`">
<v-menu v-for="stage in pipeline.stages" v-bind:key="`jobs-${pipeline.id}-${stage.name}`"
bottom
offset-y
>
<template v-slot:activator="{ on, attrs }">
<v-btn icon :color=stageColor(stage) v-bind:key="stage.name" v-bind="attrs" v-on="on">
<v-icon>{{stageIcon(stage)}}</v-icon>
</v-btn>
</template>
<span>{{ stage.name }}</span>
</v-tooltip>

<v-list>
<v-list-item
v-for="(job, index) in stage.jobs"
:key="index"
>
<v-btn icon :color=stageColor(job)>
<v-icon>{{stageIcon(job)}}</v-icon>
</v-btn>
<v-list-item-title>{{ job.name }}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</v-container>
</v-card-actions>

Expand Down

0 comments on commit f5945c8

Please sign in to comment.