From 7df5ea98709d9db9b6a27f31a51370795cc9f170 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 11 Aug 2021 21:12:20 +0200 Subject: [PATCH] Client - handle error on api calls --- .../src/components/User/UserForm.vue | 9 +++++--- fittrackee_client/src/locales/en/error.json | 3 ++- fittrackee_client/src/locales/fr/error.json | 3 ++- fittrackee_client/src/store/constants.ts | 3 ++- .../src/store/modules/root/enums.ts | 6 +++++ .../src/store/modules/root/getters.ts | 9 ++++++++ .../src/store/modules/root/index.ts | 2 ++ .../src/store/modules/root/interfaces.ts | 6 +++++ .../src/store/modules/root/mutations.ts | 9 ++++++++ .../src/store/modules/root/types.ts | 2 ++ .../src/store/modules/user/actions.ts | 23 +++++++++++++------ .../src/store/modules/user/interfaces.ts | 2 +- fittrackee_client/src/utils.ts | 23 +++++++++++++++++++ fittrackee_client/src/views/NotFound.vue | 2 +- 14 files changed, 87 insertions(+), 15 deletions(-) create mode 100644 fittrackee_client/src/store/modules/root/getters.ts diff --git a/fittrackee_client/src/components/User/UserForm.vue b/fittrackee_client/src/components/User/UserForm.vue index 7ba1774f..5844e22a 100644 --- a/fittrackee_client/src/components/User/UserForm.vue +++ b/fittrackee_client/src/components/User/UserForm.vue @@ -43,11 +43,12 @@