Add success page to GitHub signup

This commit is contained in:
2019-08-27 18:19:46 +02:00
parent 60ba019139
commit dc5dfe19f2
11 changed files with 123 additions and 64 deletions
+3 -6
View File
@@ -28,13 +28,10 @@ export default Controller.extend({
fetch(config.githubSignupUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload)
}).then(response => {
return response.json();
})
.then(res => res.json())
.then(data => {
console.log('Created contributor:', data);
@@ -43,7 +40,7 @@ export default Controller.extend({
ethAddress: null
});
// TODO show success message or transition to success page
this.transitionToRoute('signup.complete');
});
}