Email Subscribe JSON
This commit is contained in:
parent
662e1a2dec
commit
d1eb063e56
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,12 @@ export default {
|
||||||
if(!this.validateEmail(this.emailAddress)) {
|
if(!this.validateEmail(this.emailAddress)) {
|
||||||
this.message = 'Your email is not valid!';
|
this.message = 'Your email is not valid!';
|
||||||
} else {
|
} else {
|
||||||
this.$http.post('//api.lbry.io/list/subscribe', {email: this.emailAddress, tag: 'developer'}).then(function(response) {
|
this.$http.post('//api.lbry.io/list/subscribe', {
|
||||||
|
email: this.emailAddress,
|
||||||
|
tag: 'developer'
|
||||||
|
}, {
|
||||||
|
emulateJSON: true
|
||||||
|
}).then(function(response) {
|
||||||
component.email = '';
|
component.email = '';
|
||||||
component.message = 'Thank you for subscribing!';
|
component.message = 'Thank you for subscribing!';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue