From c531f7614d374dd9840196a7a2c0b693e4d12817 Mon Sep 17 00:00:00 2001 From: isah <isabelle.herbauts@univie.ac.at> Date: Thu, 30 Jul 2020 11:48:00 +0200 Subject: [PATCH] before switchin branches --- src/components/input/PhSubmit.vue | 38 ++----------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/src/components/input/PhSubmit.vue b/src/components/input/PhSubmit.vue index 08ba354..3d063e6 100644 --- a/src/components/input/PhSubmit.vue +++ b/src/components/input/PhSubmit.vue @@ -10,7 +10,7 @@ </template> </v-tab> <v-tab ripple @click="updatePrettyPrint()">Metadata preview</v-tab> - <v-tab ripple @click="addPost()">Mongo</v-tab> + <!-- <v-tab ripple @click="addPost()">Mongo</v-tab>--> <!-- <v-tab v-if="templating" ripple @click="loadTemplates()">Templates</v-tab>--> </v-tabs> @@ -244,41 +244,7 @@ export default { return "unknown"; } }, - submitMongo: async function() { - var self = this; - - //var httpFormData = new FormData(); - var myjson = { - title: "poupinette", - description: "mon poupie" - }; - //httpFormData.append(JSON.stringify(myjson)); - - //console.log("httpFormData", self.getMetadata()); - - axios.post( - self.$store.state.settings.instance.mongo + "/posts", - { - title: "NOW", - description: "NOWWWWWWWWWWWWWWWWWWWWWWW" - }, - { - headers: { - "Content-Type": "application/json" - } - } - ); - // fetch(self.$store.state.settings.instance.mongo, { - // method: "POST", - // headers: { - // "Content-Type": "application/json" - // }, - // body: JSON.stringify(myjson) - // }) - // .then(response => response.json()) - // .then(function(json) {}) - // .catch(function(error) {}); - }, + submit: async function() { var self = this; this.loading = true; -- GitLab