{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/views/NewApp.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/views/NewApp.vue","mtime":1563898961467},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js","mtime":1564062719000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport AppService from '../services/Apps'\nexport default {\n data () {\n return {\n name: '',\n nameError: null,\n nameErrorFlag: false,\n description: '',\n descriptionError: '',\n descriptionErrorFlag: false,\n url: '',\n urlError: '',\n urlErrorFlag: false\n }\n },\n methods: {\n createApp: function () {\n this.nameErrorFlag = false;\n this.nameError = null;\n this.descriptionErrorFlag = false;\n this.descriptionError = null;\n this.urlErrorFlag = false;\n this.urlError = null;\n AppService.newApp(this.name, this.description, this.url).then((res) => {\n this.$router.push({name: 'appDetails', params: {id: res.data.data.id}});\n }).catch((error) => {\n if(error.response.status == 422){\n if(error.response.data.data.name != undefined) {\n this.nameErrorFlag = true;\n this.nameError = error.response.data.data.name[0]\n }\n if(error.response.data.data.description != undefined) {\n this.descriptionErrorFlag = true;\n this.descriptionError = error.response.data.data.description[0]\n }\n if(error.response.data.data.url != undefined) {\n this.urlErrorFlag = true;\n this.urlError = error.response.data.data.url[0]\n }\n console.log(error.response.data.data);\n } else {\n alert(error.response.data.msg);\n }\n });\n }\n },\n mounted: function() {\n\n }\n}\n",{"version":3,"sources":["NewApp.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA","file":"NewApp.vue","sourceRoot":"src/views","sourcesContent":["\n\n\n\n"]}]}