mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:27: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: {
|
||||
snackText () { return this.$store.state.snack.snackText },
|
||||
snackColour () { return this.$store.state.snack.snackColour },
|
||||
...mapGetters(["serverEvent"])
|
||||
...mapGetters(["user", "serverEvent"])
|
||||
},
|
||||
|
||||
watch: {
|
||||
@@ -96,7 +96,9 @@ export default {
|
||||
// Local Storage values are always strings
|
||||
this.$vuetify.theme.dark = localStorage.getItem("darkTheme") == "true";
|
||||
await this.setCredentials();
|
||||
this.refreshProjects();
|
||||
if (this.user) {
|
||||
this.refreshProjects();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user