mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
Don't refresh projects if no user is logged in.
Avoids a 403.
This commit is contained in:
@@ -54,7 +54,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
snackText () { return this.$store.state.snack.snackText },
|
snackText () { return this.$store.state.snack.snackText },
|
||||||
snackColour () { return this.$store.state.snack.snackColour },
|
snackColour () { return this.$store.state.snack.snackColour },
|
||||||
...mapGetters(["serverEvent"])
|
...mapGetters(["user", "serverEvent"])
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
@@ -96,8 +96,10 @@ export default {
|
|||||||
// Local Storage values are always strings
|
// Local Storage values are always strings
|
||||||
this.$vuetify.theme.dark = localStorage.getItem("darkTheme") == "true";
|
this.$vuetify.theme.dark = localStorage.getItem("darkTheme") == "true";
|
||||||
await this.setCredentials();
|
await this.setCredentials();
|
||||||
|
if (this.user) {
|
||||||
this.refreshProjects();
|
this.refreshProjects();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user