From 081e62ce01ad8afa1d7e3c426f58f6966c4d79aa Mon Sep 17 00:00:00 2001 From: Thomas van der Wardt Date: Thu, 19 Nov 2020 16:35:11 +0100 Subject: [PATCH] added catch in onSubmit to avoid error on not catching it --- public/js/app.js | 3 ++- storage/database.sqlite | Bin 0 -> 36864 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 storage/database.sqlite diff --git a/public/js/app.js b/public/js/app.js index 11b72d6..54568e4 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -206,7 +206,8 @@ new Vue({ methods: { onSubmit() { this.form.post('/projects') - .then(response => alert('Wahoo!')); + .then(data => console.log(data)) + .catch(errors => console.log(errors)); } } }); diff --git a/storage/database.sqlite b/storage/database.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..7aefa934a7c570d0f0ac506deb1c4d11ae224f79 GIT binary patch literal 36864 zcmeI*Z%@-e90&00Iw;7WY7A*&LOiMuSOBwb1BFK-E{22<(UC}eP|9{f-PVrwrV!(U z;d}6zPkiKy@v$$!SKwnGdDpVPY&;;C=<;o{t-HJ5?S7wYn_RcR%bhKkGy294st%`F za+4?uc}yuGWJ)~7#iO}tVkg;rBVLt`{Xx4^C?)sidIXe-3o%bgyMZCjV$#%F&OJa|^RTh1gsH@jxNuRn@gJ_zuv7j{W zx?YK$)SNJU?*}D2U?Jn7&HXa-?0!{a=Lv6aKh3`q2@ei5sqbBAAYr1;O)-Sg%Z9+J zj$7$F1nu%6bOa6@LexeK;m(L=EC_{iJh|P;^yD_$Gu7RVWnyu!{bn#uxnIq|=}S3D z&9Drmp+(bB4_Oe}ac*_bJ+8B;WaNBMyW5*PyLoy(D;FEb5>a`3q^Yx{su_l%d^(Ks zkE)}mWOuHuxa&Kn2U|7S`<@E&WT_soAU;AnnuwF@$|u9~#Hc(9_9BGvxFXiXcE|*= zS7beJ)h?Kx%6WMPFN(-iQC9t3-$?Ne<+FG%# zjGf8Y)^a+RUA5yoL3Z;Nq8;5i$Rv`)m5p<@m6q+TwA@;ayKh3pG4o22>~_XPA+4C` zW=`BvuKyGIPon=4PuL&;0SG_<0uX=z1Rwwb2tWV=5cp38CKKwc(!8ahPAlr1()y`D zsLJ)f_|ZQ$2tWV=5P$##AOHafKmY;|fB*!BSm1`t4eS3Qo?)a00SG_<0uX=z1Rwwb z2tWV=5QzWCAJ+dk5+DEp2tWV=5P$##AOHafKmY>6Er9R;hkJgJ9Rwf%0SG_<0uX=z z1Rwwb2tYszVEvEd00Izz00bZa0SG_<0uX=z1RyZ{0`dR<+b8;W{j