Adrià Vilanova MartÃnez | 1e10d19 | 2021-12-31 16:01:13 +0100 | [diff] [blame^] | 1 | <script> |
| 2 | import WfMenu from './WfMenu.vue'; |
| 3 | |
| 4 | export 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> |