diff --git a/md-parser/package.json b/md-parser/package.json
index 0c3c95e2..6dc5ea17 100644
--- a/md-parser/package.json
+++ b/md-parser/package.json
@@ -14,6 +14,7 @@
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-markdown": "^2.2.4",
+ "vue-material": "^1.0.0-beta-15",
"vue-resource": "^1.5.1",
"vue-router": "^3.3.4",
"vuex": "^3.5.1"
diff --git a/md-parser/src/App.vue b/md-parser/src/App.vue
index 80d51a7e..f64df1f4 100644
--- a/md-parser/src/App.vue
+++ b/md-parser/src/App.vue
@@ -15,10 +15,13 @@
-s
+
diff --git a/md-parser/src/components/UserInputPage.vue b/md-parser/src/components/UserInputPage.vue
index 1e595657..9442ed54 100644
--- a/md-parser/src/components/UserInputPage.vue
+++ b/md-parser/src/components/UserInputPage.vue
@@ -1,8 +1,8 @@
@@ -25,19 +25,21 @@ export default {
},
data: function() {
return{
- usertext: '',
- }
- },
- computed: {
- articleText() {
- return this.$store.state.article.content
+ userText: '',
}
},
methods: {
// saves article content
articleUpate : function() {
- this.$router.push('/published')
+ console.log('updating in UserInputPage')
+ this.userText = this.$store.getters.getContent
},
+ articlePublish: function(){
+ this.$router.push('/published')
+ }
+ },
+ mounted: function(){
+ this.userText = this.$store.getters.getContent
}
}
diff --git a/md-parser/src/main.js b/md-parser/src/main.js
index 87e121d3..a43bd700 100644
--- a/md-parser/src/main.js
+++ b/md-parser/src/main.js
@@ -10,12 +10,15 @@ import VueResource from 'vue-resource'
import { store } from './store/store'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
+import VueMaterial from 'vue-material'
Vue.use(VueRouter)
Vue.use(BootstrapVue)
Vue.use(VueResource)
Vue.use(Vuex)
+Vue.use(VueMaterial)
+
Vue.config.productionTip = false
const routes = [
diff --git a/md-parser/src/store/store.js b/md-parser/src/store/store.js
index c726dd7c..cd3dc5d2 100644
--- a/md-parser/src/store/store.js
+++ b/md-parser/src/store/store.js
@@ -16,7 +16,7 @@ export const store = new Vuex.Store({
}
},
getters: {
- getContent (state) {
+ getContent(state) {
return state.article.content
}
},
@@ -43,4 +43,4 @@ export const store = new Vuex.Store({
state.article.content = ""
}
}
-})
\ No newline at end of file
+})