We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28558ea commit 104aba2Copy full SHA for 104aba2
packages/@vue/cli-ui/src/components/TaskItem.vue
@@ -7,6 +7,7 @@
7
selected
8
}
9
]"
10
+ @dblclick="runTask()"
11
>
12
<div class="content">
13
<ItemLogo
@@ -25,6 +26,8 @@
25
26
</template>
27
28
<script>
29
+import TASK_RUN from '../graphql/taskRun.gql'
30
+
31
const icons = {
32
idle: { icon: 'assignment', class: '' },
33
running: { icon: 'more_horiz', class: 'info' },
@@ -54,6 +57,18 @@ export default {
54
57
iconData () {
55
58
return icons[this.task.status]
56
59
60
+ },
61
62
+ methods: {
63
+ runTask () {
64
+ if (this.task.status === 'running') return
65
+ this.$apollo.mutate({
66
+ mutation: TASK_RUN,
67
+ variables: {
68
+ id: this.task.id
69
+ }
70
+ })
71
72
73
74
</script>
0 commit comments