Add workflow menu button to thread lists
Bug: twpowertools:74
Change-Id: I703950394d674c2084278bf9e876014d08fa5cfb
diff --git a/src/contentScripts/communityConsole/workflows/components/Overlay.vue b/src/contentScripts/communityConsole/workflows/components/Overlay.vue
new file mode 100644
index 0000000..304b362
--- /dev/null
+++ b/src/contentScripts/communityConsole/workflows/components/Overlay.vue
@@ -0,0 +1,29 @@
+<script>
+import WfMenu from './WfMenu.vue';
+
+export default {
+ components: {
+ WfMenu,
+ },
+ data() {
+ return {
+ shown: false,
+ position: [0, 0],
+ // TODO: Get real data.
+ workflows: [
+ {name: 'Move to accounts'},
+ {name: 'Mark as spam w/ message'},
+ ],
+ };
+ },
+ methods: {
+ startWorkflow(e) {
+ console.log(e);
+ }
+ },
+}
+</script>
+
+<template>
+ <wf-menu v-model="shown" :position="position" :workflows="workflows" @select="startWorkflow" />
+</template>