Files
hoppscotch/pages/profile.vue
2021-07-06 18:00:39 +00:00

39 lines
870 B
Vue

<template>
<div>
<ButtonPrimary
v-if="currentUser === null"
label="Get Started"
@click.native="showLogin = true"
/>
<div v-if="currentBackendUser && currentBackendUser.eaInvited">
<Teams />
</div>
{{ hideRightPane }}
<div v-if="!hideRightPane">hide this thingy</div>
<FirebaseLogin :show="showLogin" @hide-modal="showLogin = false" />
</div>
</template>
<script>
import { currentUser$ } from "~/helpers/fb/auth"
import { currentUserInfo$ } from "~/helpers/teams/BackendUserInfo"
export default {
props: { hideRightPane: { type: Boolean, default: false } },
data() {
return {
showLogin: false,
currentBackendUser: null,
}
},
subscriptions() {
return {
currentUser: currentUser$,
// Teams feature flag
currentBackendUser: currentUserInfo$,
}
},
}
</script>