blob: 304b362e4f384f65acba31c20d8fd91591cf89b1 [file] [log] [blame]
Adrià Vilanova Martínez1e10d192021-12-31 16:01:13 +01001<script>
2import WfMenu from './WfMenu.vue';
3
4export default {
5 components: {
6 WfMenu,
7 },
8 data() {
9 return {
10 shown: false,
11 position: [0, 0],
12 // TODO: Get real data.
13 workflows: [
14 {name: 'Move to accounts'},
15 {name: 'Mark as spam w/ message'},
16 ],
17 };
18 },
19 methods: {
20 startWorkflow(e) {
21 console.log(e);
22 }
23 },
24}
25</script>
26
27<template>
28 <wf-menu v-model="shown" :position="position" :workflows="workflows" @select="startWorkflow" />
29</template>