diff --git a/src/components/input/PhSubmit.vue b/src/components/input/PhSubmit.vue index 08ba3544e1a0b4b983e2534c460821791eb642b3..3d063e6b431641717b694adbb2136c2a2b99f2b2 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;