feat: directly open general settings when opening user settings and none selected
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
kolaente 2021-11-14 21:19:56 +01:00
parent 1fa164453c
commit ce0122ba81
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -64,6 +64,10 @@ export default {
name: 'Settings',
mounted() {
this.setTitle(this.$t('user.settings.title'))
if(this.$route.name === 'user.settings') {
this.$router.replace({name: 'user.settings.general'})
}
},
computed: {
...mapState('config', ['totpEnabled', 'caldavEnabled']),