]>
git.r.bdr.sh - rbdr/dasein/blob - app/components/welcome.js
4fcee0fe371971ff8d10b44b9aec14ed08ca3d90
2 import AuthService
from '../services/auth';
8 export default internals
.WelcomeComponent
= Vue
.component('welcome', {
9 template: '<div class="welcome-container">' +
10 '<p>{{message}}</p>' +
11 '<a href="#" v-on:click=initiateLogin v-if=!loggingIn>Login</a>' +
17 message: 'Welcome to Dasein, a social network with posts that disappear when the conversation stops',
19 authService: new AuthService()
26 this.message
= 'Logging you in...';
27 this.loggingIn
= true;
29 this.authService
.initiateLogin().then((authData
) => {
31 window
.location
.href
= authData
.loginUrl
;
35 this.message
= 'Oh no! There was a problem logging you in.';