Merge pull request #563 from YunoHost/fixes

fixes: login not redirecting + /domains query appearing in history
This commit is contained in:
Axolotle 2024-03-26 23:22:31 +01:00 committed by GitHub
commit ab4dc8fd4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,7 @@ export default {
// and login prompt will be shown automaticly
await dispatch('GET_YUNOHOST_INFOS')
commit('SET_CONNECTED', true)
await dispatch('GET', { uri: 'domains', storeKey: 'domains' })
await api.get({ uri: 'domains', storeKey: 'domains' })
},
RESET_CONNECTED({ commit }) {
@ -170,7 +170,7 @@ export default {
return api
.post('login', { credentials }, null, { websocket: false })
.then(() => {
dispatch('CONNECT')
return dispatch('CONNECT')
})
},