Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mo9a7i committed Feb 16, 2023
1 parent 264d8a5 commit fa6c80d
Show file tree
Hide file tree
Showing 8 changed files with 361 additions and 93 deletions.
32 changes: 1 addition & 31 deletions components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,7 @@ export default {
}
},
mounted() {
if(this.$auth.user?.user?.firstName){
this.user = this.$auth.user.user;
}

console.log('before mutlaq expierment')
this.$MFO_UTILS.setCheckInVenueInformation({id: 123})
console.log("mounted");
this.saveUser();
},
watch: {
venue_search: async function(val){
Expand Down Expand Up @@ -140,30 +133,7 @@ export default {
}
},
methods: {
async saveUser() {
//console.log(this.$auth.strategy.token.get());
//console.log(this.$auth.user)
//return;
//console.log(await this.$fire.firestore.collection('users').get());
const saveUser = await this.$MFO_UTILS.createUserInFirebase();

// get user configs
const userConfigs = await this.$MFO_UTILS.getConfigsFromFirebase();
if(userConfigs){
if(userConfigs?.enabled == true){
this.configs.enabled = true;
}

if(userConfigs?.settings?.checkins?.enabled == true){
this.configs.checkins.enabled = true;
}

this.configs.loading = false;
this.configs.checkins.loading = false;
}
console.log(userConfigs)

},

},
};
</script>
Loading

0 comments on commit fa6c80d

Please sign in to comment.