Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • coscine/frontend/apps/ui
1 result
Select Git revision
Show changes
Commits on Source (2)
{
"name": "ui",
"version": "3.8.2",
"version": "3.8.3",
"scripts": {
"dev": "vite",
"build": "vite build",
......
......@@ -108,6 +108,9 @@ export default defineComponent({
},
computed: {
isLoggedIn(): boolean {
return this.loginStore.isLoggedIn;
},
currentTheme(): Theme {
return this.mainStore.currentTheme;
},
......@@ -137,6 +140,15 @@ export default defineComponent({
},
},
watch: {
isLoggedIn(newVal: boolean) {
if (newVal) {
// User is logged in. Redirecting to home page.
this.$router.push({ name: "home" });
}
},
},
created() {
this.initialize();
},
......