Files
habitica/website/client/components/static/home.vue
Matteo Pagliazzi 33a39d3683 Client fixes (#8844)
* client: fix router when not authenticated, small fixes for tasks

* load the user only when necessary

* fix tests
2017-06-29 20:49:05 +02:00

31 lines
692 B
Vue

<template lang="pug">
nav
router-link(:to="{name: 'login'}") Login
router-link(:to="{name: 'register'}") Register
</template>
<script>
export default {
methods: {
play () {
// @TODO:
// Auth play click
},
// passwordReset (email) {
// if(email == null || email.length == 0) {
// alert(window.env.t('invalidEmail'));
// } else {
// $http.post(ApiUrl.get() + '/api/v3/user/reset-password', {email:email})
// .success(function(){
// alert(window.env.t('newPassSent'));
// })
// .error(function(data){
// alert(data.err);
// });
// }
// },
},
};
</script>