diff --git a/changes/changelog.d/408.enhancement b/changes/changelog.d/408.enhancement new file mode 100644 index 0000000000000000000000000000000000000000..0b541d7c021a6903ff9aca18ca604f4af1f93b87 --- /dev/null +++ b/changes/changelog.d/408.enhancement @@ -0,0 +1 @@ +Add sign up link in the sidebar (#408) diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index a8a3205cf4d9852da79d6ffb8ab55f68d705bd3b..b789f3814163d25b6317741c97c22a081eb77e60 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -42,7 +42,12 @@ <img class="ui right floated circular tiny avatar image" v-if="$store.state.auth.profile.avatar.square_crop" :src="$store.getters['instance/absoluteUrl']($store.state.auth.profile.avatar.square_crop)" /> </router-link> <router-link class="item" v-if="$store.state.auth.authenticated" :to="{name: 'logout'}"><i class="sign out icon"></i><translate>Logout</translate></router-link> - <router-link class="item" v-else :to="{name: 'login'}"><i class="sign in icon"></i><translate>Login</translate></router-link> + <template v-else> + <router-link class="item" :to="{name: 'login'}"><i class="sign in icon"></i><translate>Login</translate></router-link> + <router-link class="item" :to="{path: '/signup'}"> + <translate>Create an account</translate> + </router-link> + </template> </div> </div> <div class="item">