Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (34 sloc) 929 Bytes
<router-link to="/" class="button">Home</router-link>
<router-link to="dashboard" class="button" v-if="user">Dashboard</router-link>
<router-link to="sign-in" class="button" v-if="!user">Sign-in</router-link>
<router-link to="sign-up" class="button" v-if="!user">Sign-up</router-link>
<a class="button" v-on:click="signOut" v-if="user">Sign-out</a>
import Firebase from "firebase";
export default {
computed: {
user() {
return this.$store.getters.getUser;
methods: {
signOut: function() {
.then(() => {
<style lang="scss">
// Basic styles are pulled in from the Bulma framework
// These style tags could be omitted as they arre not used.
You can’t perform that action at this time.