Initial Firebase refactor pass
This commit is contained in:
@@ -7,21 +7,17 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { fb } from "~/helpers/fb"
|
||||
<script lang="ts">
|
||||
import Vue from "vue"
|
||||
import { signOutUser } from "~/helpers/fb/auth"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
fb,
|
||||
}
|
||||
},
|
||||
export default Vue.extend({
|
||||
methods: {
|
||||
async logout() {
|
||||
try {
|
||||
await fb.signOutUser()
|
||||
await signOutUser()
|
||||
|
||||
this.$toast.info(this.$t("logged_out"), {
|
||||
this.$toast.info(this.$t("logged_out").toString(), {
|
||||
icon: "vpn_key",
|
||||
})
|
||||
} catch (err) {
|
||||
@@ -31,5 +27,5 @@ export default {
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user