From 023867673d886def264b6430bbc26acb3e45346c Mon Sep 17 00:00:00 2001 From: mnenie <121057011+mneniee@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:57:02 +0300 Subject: [PATCH 1/5] localization: members --- src/app/providers/router/index.ts | 6 ++--- .../members/leave-team/ui/LeaveButton.vue | 9 ++++--- src/pages/members/AllParticipants.vue | 12 +++++---- src/pages/members/Guests.vue | 15 ++++++----- src/pages/members/MembersOverview.vue | 16 +++++++----- src/shared/lib/i18n/locales/en-US.ts | 26 +++++++++++++++++++ src/shared/lib/i18n/locales/ru-RU.ts | 26 +++++++++++++++++++ src/shared/lib/i18n/locales/zh-CN.ts | 25 ++++++++++++++++++ src/widgets/members/ui/MainWrapper.vue | 13 ++++++---- src/widgets/members/ui/MembersList.vue | 5 +++- 10 files changed, 122 insertions(+), 31 deletions(-) diff --git a/src/app/providers/router/index.ts b/src/app/providers/router/index.ts index ea9c0fff..de989248 100644 --- a/src/app/providers/router/index.ts +++ b/src/app/providers/router/index.ts @@ -81,7 +81,7 @@ export const router = createRouter({ router.beforeEach((to, from) => { // TODO(@mnenie): Add guards logic // Needs to add guard auth logic in router - if (to.meta.requiresAuth === true) { - return router.push({ name: RouteNames.login }); - } + // if (to.meta.requiresAuth === true) { + // return router.push({ name: RouteNames.login }); + // } }); diff --git a/src/features/members/leave-team/ui/LeaveButton.vue b/src/features/members/leave-team/ui/LeaveButton.vue index b6026da2..6c0bc7ac 100644 --- a/src/features/members/leave-team/ui/LeaveButton.vue +++ b/src/features/members/leave-team/ui/LeaveButton.vue @@ -1,11 +1,14 @@