From a5e0022fb567b66c5606e4a76118b4a22c21e626 Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 26 Mar 2024 23:16:19 +0100 Subject: [PATCH 1/2] fix(login): return proper Promise on login action --- app/src/store/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/store/info.js b/app/src/store/info.js index dee32487..2bade867 100644 --- a/app/src/store/info.js +++ b/app/src/store/info.js @@ -170,7 +170,7 @@ export default { return api .post('login', { credentials }, null, { websocket: false }) .then(() => { - dispatch('CONNECT') + return dispatch('CONNECT') }) }, From 8479fe4a20babd9874a49cfef67e744adc85763a Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 26 Mar 2024 23:17:17 +0100 Subject: [PATCH 2/2] fix: use api instead of store action to query domains --- app/src/store/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/store/info.js b/app/src/store/info.js index 2bade867..9bed6a85 100644 --- a/app/src/store/info.js +++ b/app/src/store/info.js @@ -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 }) {