api-client/components/http/Notes.vue

31 lines
618 B
Vue
Raw Normal View History

<template>
2021-05-18 09:27:29 +00:00
<AppSection ref="sync" :label="$t('notes')" no-legend>
2021-06-14 04:07:30 +00:00
<div v-if="currentUser">
<FirebaseInputform />
<FirebaseFeeds />
</div>
<div v-else>
2020-12-11 10:29:03 +00:00
<p class="info">{{ $t("login_first") }}</p>
2021-06-11 00:01:29 +00:00
<FirebaseLogin @show-email="showEmail = true" />
</div>
2021-06-11 00:01:29 +00:00
<FirebaseEmail :show="showEmail" @hide-modal="showEmail = false" />
</AppSection>
</template>
<script>
2021-06-14 04:07:30 +00:00
import { currentUser$ } from "~/helpers/fb/auth"
export default {
2021-06-14 04:07:30 +00:00
subscriptions() {
return {
currentUser: currentUser$,
}
},
data() {
return {
2021-06-11 00:01:29 +00:00
showEmail: false,
}
},
}
</script>