summaryrefslogtreecommitdiffstats
path: root/gfx/wr/debugger/src/components/DocumentViewPage.vue
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/wr/debugger/src/components/DocumentViewPage.vue')
-rw-r--r--gfx/wr/debugger/src/components/DocumentViewPage.vue37
1 files changed, 37 insertions, 0 deletions
diff --git a/gfx/wr/debugger/src/components/DocumentViewPage.vue b/gfx/wr/debugger/src/components/DocumentViewPage.vue
new file mode 100644
index 0000000000..6d5f02da73
--- /dev/null
+++ b/gfx/wr/debugger/src/components/DocumentViewPage.vue
@@ -0,0 +1,37 @@
+<template>
+ <div class="box">
+ <h1 class="title">Documents <a :disabled="disabled" v-on:click="fetch" class="button is-info">Refresh</a></h1>
+ <hr/>
+ <div>
+ <ul>
+ <app-treeview :model=documents></app-treeview>
+ </ul>
+ </div>
+ </div>
+</template>
+
+<script>
+import TreeView from './TreeView.vue'
+
+export default {
+ components: {
+ 'app-treeview': TreeView,
+ },
+ methods: {
+ fetch: function() {
+ this.$store.dispatch('sendMessage', "fetch_documents");
+ }
+ },
+ computed: {
+ disabled() {
+ return !this.$store.state.connected
+ },
+ documents() {
+ return this.$store.state.documents
+ }
+ },
+}
+</script>
+
+<style>
+</style>