mirror of
https://github.com/filegator/filegator.git
synced 2025-08-04 16:37:45 +02:00
fixes #31
This commit is contained in:
@@ -246,7 +246,7 @@ export default {
|
|||||||
.catch(error => this.handleError(error))
|
.catch(error => this.handleError(error))
|
||||||
},
|
},
|
||||||
goTo(path) {
|
goTo(path) {
|
||||||
this.$router.push({ name: 'browser', query: { 'cd': path }})
|
this.$router.push({ name: 'browser', query: { 'cd': path }}).catch(() => {})
|
||||||
},
|
},
|
||||||
getSelected() {
|
getSelected() {
|
||||||
return _.reduce(this.checked, function(result, value) {
|
return _.reduce(this.checked, function(result, value) {
|
||||||
|
@@ -58,7 +58,7 @@ export default {
|
|||||||
api.getUser()
|
api.getUser()
|
||||||
.then(user => {
|
.then(user => {
|
||||||
this.$store.commit('setUser', user)
|
this.$store.commit('setUser', user)
|
||||||
this.$router.push('/login')
|
this.$router.push('/')
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.$store.commit('initialize')
|
this.$store.commit('initialize')
|
||||||
|
Reference in New Issue
Block a user