From 9d2378c04e89ddd2395dd52707021db5ab179107 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 22 May 2017 17:29:42 +0100 Subject: [PATCH] [fix] navigation-drawer --- src/vue-poc/static/app-gen.js | 6 ++---- src/vue-poc/static/app.html | 4 ++-- src/vue-poc/static/core.js | 4 +--- src/vue-poc/templates/edit.vue | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/vue-poc/static/app-gen.js b/src/vue-poc/static/app-gen.js index a8db98a..e6ee7cd 100644 --- a/src/vue-poc/static/app-gen.js +++ b/src/vue-poc/static/app-gen.js @@ -97,7 +97,7 @@ const Edit=Vue.extend({ `, data () { return { - contentA: 'declare function local:query($q as xs:string)\n{\n}', + contentA: 'declare function local:query($q as xs:string)\n { \n }', mode:'xquery', url:'', name:'', @@ -618,9 +618,7 @@ const app = new Vue({ }] }}, methods: { - openSidebar() { - this.sidebar = !this.sidebar; - }, + search(){ this.$router.push({path: 'search',query: { q: this.q }}) } diff --git a/src/vue-poc/static/app.html b/src/vue-poc/static/app.html index 4dcc1ee..58539cc 100644 --- a/src/vue-poc/static/app.html +++ b/src/vue-poc/static/app.html @@ -55,13 +55,13 @@ - + {{ item.icon }} - {{ item.title }} + {{ item.title }} diff --git a/src/vue-poc/static/core.js b/src/vue-poc/static/core.js index 330bdbd..d17a133 100644 --- a/src/vue-poc/static/core.js +++ b/src/vue-poc/static/core.js @@ -100,9 +100,7 @@ const app = new Vue({ }] }}, methods: { - openSidebar() { - this.sidebar = !this.sidebar; - }, + search(){ this.$router.push({path: 'search',query: { q: this.q }}) } diff --git a/src/vue-poc/templates/edit.vue b/src/vue-poc/templates/edit.vue index 2518b53..45b2ea9 100644 --- a/src/vue-poc/templates/edit.vue +++ b/src/vue-poc/templates/edit.vue @@ -102,7 +102,7 @@ v-on:annotation="annotation"> template: '#edit', data () { return { - contentA: 'declare function local:query($q as xs:string)\n{\n}', + contentA: 'declare function local:query($q as xs:string)\n { \n }', mode:'xquery', url:'', name:'',