|
@@ -25,7 +25,7 @@
|
|
|
</section>
|
|
|
<footer class='modal-card-foot'>
|
|
|
<a class='button is-primary' href='#' @click='submitModal()'>Submit</a>
|
|
|
- <a class='button is-github' :href='$parent.serverDomain + "/auth/github/authorize"'>
|
|
|
+ <a class='button is-github' :href='$parent.serverDomain + "/auth/github/authorize"' @click="githubRedirect()">
|
|
|
<div class='icon'>
|
|
|
<img class='invert' src='/assets/social/github.svg'/>
|
|
|
</div>
|
|
@@ -62,6 +62,9 @@
|
|
|
submitModal: function () {
|
|
|
this.$dispatch('register', this.recaptcha.id);
|
|
|
this.toggleModal();
|
|
|
+ },
|
|
|
+ githubRedirect: function() {
|
|
|
+ localStorage.setItem('github_redirect', this.$route.path)
|
|
|
}
|
|
|
},
|
|
|
events: {
|