Skip to content

Commit f033089

Browse files
committed
Hotfix for response redirect.
1 parent ea9e1f4 commit f033089

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/vue.form.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @author Alejandro Mostajo <http://about.me/amostajo>
77
* @copyright 10Quality <http://www.10quality.com>
88
* @license MIT
9-
* @version 2.0.1
9+
* @version 2.0.2
1010
*/
1111
Vue.component('vform', Vue.extend({
1212
props:
@@ -226,7 +226,7 @@ Vue.component('vform', Vue.extend({
226226
* @since 1.0.4 Response errors triggers invalid event.
227227
* @since 1.0.9 Forces response conversion to jsob or blob.
228228
* @since 2.0.0 Use $emit and remove $set.
229-
* @since 2.0.1 Fixes response redirect.
229+
* @since 2.0.2 Fixes response redirect.
230230
*
231231
* @param object response Response
232232
*/
@@ -242,8 +242,8 @@ Vue.component('vform', Vue.extend({
242242
if (this.response.errors !== undefined && Object.keys(this.response.errors).length > 0) {
243243
this.$emit('invalid', this.response.errors);
244244
}
245-
if (response.redirect !== undefined)
246-
return window.location = response.redirect;
245+
if (this.response.redirect !== undefined)
246+
return window.location = this.response.redirect;
247247
this.onComplete();
248248
},
249249
/**

dist/vue.form.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-form-10q",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Form component for Vue JS.",
55
"main": "dist/vue.form.min.js",
66
"repository": {

0 commit comments

Comments
 (0)