Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-24 19:48:09 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-24 19:48:09 +0300
commit18beea362c19d085eb3f086bb2aa3deb39f597d8 (patch)
tree28dc6639bbc927d134916ea5f833f5819c641423 /src/views
parentf02746ee6bd073e51a3b9f79199e56efa5cbd00f (diff)
Fix redirection on (first) account setup
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Home.vue5
-rw-r--r--src/views/Setup.vue1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 26984c1ee..e718e3fe0 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -8,8 +8,9 @@
<script>
import Content from '@nextcloud/vue/dist/Components/Content'
-import Navigation from '../components/Navigation'
import FolderContent from '../components/FolderContent'
+import logger from '../logger'
+import Navigation from '../components/Navigation'
export default {
name: 'Home',
@@ -48,7 +49,7 @@ export default {
},
})
} else if (this.$route.name === 'home' && accounts.length === 1) {
- // The only account we have is the unified one -> show the setup page
+ logger.debug('the only account we have is the unified one -> show the setup page')
this.$router.replace({
name: 'setup',
})
diff --git a/src/views/Setup.vue b/src/views/Setup.vue
index 9e17fb1ce..abeb4811c 100644
--- a/src/views/Setup.vue
+++ b/src/views/Setup.vue
@@ -40,6 +40,7 @@ export default {
return this.$store
.dispatch('createAccount', data)
.then(account => {
+ logger.info('account successfully created, redirecting …')
this.$router.push({
name: 'home',
})