Initial Firebase refactor pass

This commit is contained in:
Andrew Bastin
2021-06-14 00:07:30 -04:00
parent ced2f1b911
commit 85c6932f8f
30 changed files with 979 additions and 1029 deletions

View File

@@ -140,7 +140,7 @@
<script>
import gql from "graphql-tag"
import cloneDeep from "lodash/cloneDeep"
import { fb } from "~/helpers/fb"
import { currentUser$ } from "~/helpers/fb/auth"
import TeamCollectionAdapter from "~/helpers/teams/TeamCollectionAdapter"
import * as teamUtils from "~/helpers/teams/utils"
import {
@@ -189,11 +189,12 @@ export default {
subscriptions() {
return {
collections: restCollections$,
currentUser: currentUser$,
}
},
computed: {
showTeamCollections() {
if (fb.currentUser == null) {
if (this.currentUser == null) {
return false
}
return true