From cdfe8ed7adc03fd95527c024467f68c00fce1854 Mon Sep 17 00:00:00 2001 From: Shivam Gupta Date: Mon, 19 Feb 2024 11:45:59 +0530 Subject: [PATCH 1/6] Updated: language string in action and list --- .../Backend/RegistrationsController.php | 14 +++++++++++ Vue/vaahtwo/pages/registrations/List.vue | 23 ++++++++++++------- .../registrations/components/Actions.vue | 14 ++++++----- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/Http/Controllers/Backend/RegistrationsController.php b/Http/Controllers/Backend/RegistrationsController.php index adde3134c..c25a5fe3f 100644 --- a/Http/Controllers/Backend/RegistrationsController.php +++ b/Http/Controllers/Backend/RegistrationsController.php @@ -61,6 +61,20 @@ public function getAssets(Request $request): JsonResponse } } + //--------------------------------------------------- + + $data['language_strings'] = [ + "page_title" => trans("vaahcms-registration.registrations_title"), + "filter_email_verification_pending" => trans("vaahcms-registration.filter_email_verification_pending"), + "filter_email_verified" => trans("vaahcms-registration.filter_email_verified"), + "filter_user_created" => trans("vaahcms-registration.filter_user_created"), + "table_gender_male" => trans("vaahcms-registration.table_gender_male"), + "table_gender_female" => trans("vaahcms-registration.table_gender_female"), + "table_gender_others" => trans("vaahcms-registration.table_gender_others"), + ]; + + //--------------------------------------------------- + $data['actions'] = []; $data['country_calling_code'] = vh_get_country_list(); diff --git a/Vue/vaahtwo/pages/registrations/List.vue b/Vue/vaahtwo/pages/registrations/List.vue index 2a04ecd4a..3e6aa735a 100644 --- a/Vue/vaahtwo/pages/registrations/List.vue +++ b/Vue/vaahtwo/pages/registrations/List.vue @@ -6,11 +6,12 @@ import {useRegistrationStore} from '../../stores/store-registrations' import Actions from "./components/Actions.vue"; import Table from "./components/Table.vue"; - +const root = useRootStore(); const store = useRegistrationStore(); const route = useRoute(); import { useConfirm } from "primevue/useconfirm"; +import {useRootStore} from "../../stores/root"; const confirm = useConfirm(); @@ -57,11 +58,11 @@ onMounted(async () => { - + diff --git a/Vue/vaahtwo/pages/registrations/components/Actions.vue b/Vue/vaahtwo/pages/registrations/components/Actions.vue index 6da0affb1..c37adb507 100644 --- a/Vue/vaahtwo/pages/registrations/components/Actions.vue +++ b/Vue/vaahtwo/pages/registrations/components/Actions.vue @@ -3,7 +3,9 @@ import {ref, reactive, watch, onMounted} from 'vue'; import { useRegistrationStore } from '../../../stores/store-registrations' import Filters from './Filters.vue' +import {useRootStore} from "../../../stores/root"; +const root = useRootStore(); const store = useRegistrationStore(); onMounted(async () => { @@ -33,7 +35,7 @@ const toggleBulkMenuState = (event) => {
-
+