diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 1c592ed..34868c8 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -159,6 +159,9 @@ export default { }, shared:{ searchBar: 'Search', + loading: 'Obtaining data...', + failedToLoad: 'No data to show', + failedToSearch: 'No data matching search', }, editUserPage: { title: 'Edit Account', diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 59dfd5b..e489482 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -228,6 +228,9 @@ export default { }, shared:{ searchBar: 'Rechercher', + loading: 'Téléchargement des données en cours...', + failedToLoad: 'Aucune donnée à afficher', + failedToSearch: 'Aucun résultat de recherche obtenu', }, shiftColumns: { title: 'Quarts de travail', diff --git a/src/modules/auth/composables/use-auth-api.ts b/src/modules/auth/composables/use-auth-api.ts index 8a7b8c2..719fe01 100644 --- a/src/modules/auth/composables/use-auth-api.ts +++ b/src/modules/auth/composables/use-auth-api.ts @@ -1,5 +1,4 @@ import { useAuthStore } from "../../../stores/auth-store"; -import type { User } from "src/modules/shared/types/user-interface"; export const useAuthApi = () => { const authStore = useAuthStore(); @@ -22,8 +21,8 @@ export const useAuthApi = () => { return authStore.isAuthorizedUser; }; - const setUser = (currentUser: User) => { - authStore.user = currentUser; + const setUser = (bypassRole: string) => { + authStore.setUser(bypassRole); } return { diff --git a/src/modules/auth/pages/auth-login.vue b/src/modules/auth/pages/auth-login.vue index d08ca9d..982deea 100644 --- a/src/modules/auth/pages/auth-login.vue +++ b/src/modules/auth/pages/auth-login.vue @@ -1,10 +1,8 @@