Notes.vue 618 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <AppSection ref="sync" :label="$t('notes')" no-legend>
  3. <div v-if="currentUser">
  4. <FirebaseInputform />
  5. <FirebaseFeeds />
  6. </div>
  7. <div v-else>
  8. <p class="info">{{ $t("login_first") }}</p>
  9. <FirebaseLogin @show-email="showEmail = true" />
  10. </div>
  11. <FirebaseEmail :show="showEmail" @hide-modal="showEmail = false" />
  12. </AppSection>
  13. </template>
  14. <script>
  15. import { currentUser$ } from "~/helpers/fb/auth"
  16. export default {
  17. subscriptions() {
  18. return {
  19. currentUser: currentUser$,
  20. }
  21. },
  22. data() {
  23. return {
  24. showEmail: false,
  25. }
  26. },
  27. }
  28. </script>