Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOSIP-31930] Moved the warning message from the policy object to generic validationMessages object. #250

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
required
/>
<mat-hint *ngIf="field.maxLength === primaryData[field.name].length">
{{'policy.max-limit'|translate}}
{{'validationMessages.max-limit'|translate}}
</mat-hint>
</mat-form-field>
<mat-form-field style="width:950px" *ngIf="field.showInSingleView === 'true' && field.inputType === 'textarea' && primaryData[field.name] === '{}'">
Expand Down Expand Up @@ -51,7 +51,7 @@
rows="7" cols="40"
></textarea>
<mat-hint *ngIf="field.maxLength === primaryData[field.name].length">
{{'policy.max-limit'|translate}}
{{'validationMessages.max-limit'|translate}}
</mat-hint>
</mat-form-field>
<mat-form-field *ngIf="field.showInSingleView === 'true' && field.inputType === 'dropdown'">
Expand Down
4 changes: 2 additions & 2 deletions pmp-ui/src/assets/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
"validationMessages": {
"required": "يرجى ملء كل من الحقل إلى ومن الحقل للتصفية حسب النطاق الزمني",
"range": "حتى الآن لا يمكن أن يكون قبل من تاريخ",
"invalid": "الرجاء تحديد قيمة صالحة للتاريخ"
"invalid": "الرجاء تحديد قيمة صالحة للتاريخ",
"max-limit": "تم الوصول إلى الحد الأقصى"
},
"actionMessages": {
"decommission": {
Expand Down Expand Up @@ -385,7 +386,6 @@
"language": "إنجليزي",
"keyboard-tooltip": "انقر للحصول على لوحة المفاتيح الافتراضية (الإنجليزية)",
"update": "تحديث",
"max-limit": "تم الوصول إلى الحد الأقصى",
"validationMessages": {
"name": {
"required": "اسم السياسة مطلوب",
Expand Down
4 changes: 2 additions & 2 deletions pmp-ui/src/assets/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@
"validationMessages": {
"required": "Please fill both the ‘To’ and ‘From’ field to filter by the date range",
"range": "’To’ date cannot be before ‘From’ date'",
"invalid": "Please select a valid value for Date"
"invalid": "Please select a valid value for Date",
"max-limit": "Max limit reached"
},
"actionMessages": {
"decommission": {
Expand Down Expand Up @@ -378,7 +379,6 @@
"language": "English",
"keyboard-tooltip": "Click for Virtual Keyboard (English)",
"update": "Update",
"max-limit": "Max limit reached",
"validationMessages": {
"name": {
"required": "Policy Name is required",
Expand Down
4 changes: 2 additions & 2 deletions pmp-ui/src/assets/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
"validationMessages": {
"required": "Veuillez remplir les champs À et De pour filtrer par plage de dates",
"range": "La date de fin ne peut pas être antérieure à la date de début",
"invalid": "Veuillez sélectionner une valeur valide pour Date"
"invalid": "Veuillez sélectionner une valeur valide pour Date",
"max-limit": "Limite maximale atteinte"
},
"actionMessages": {
"decommission": {
Expand Down Expand Up @@ -381,7 +382,6 @@
"language": "Anglais",
"keyboard-tooltip": "Cliquez pour le clavier virtuel (anglais)",
"update": "Mise à jour",
"max-limit": "Limite maximale atteinte",
"validationMessages": {
"name": {
"required": "Le nom de la stratégie est requis",
Expand Down
4 changes: 2 additions & 2 deletions pmp-ui/src/assets/i18n/hin.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
"validationMessages": {
"required": "कृपया दिनांक सीमा के अनुसार फ़िल्टर करने के लिए 'प्रति' और 'प्रेषक' दोनों फ़ील्ड भरें",
"range": "'टू' तारीख 'से' तारीख से पहले की नहीं हो सकती'_हिन",
"invalid": "कृपया दिनांक के लिए एक मान्य मान चुनें"
"invalid": "कृपया दिनांक के लिए एक मान्य मान चुनें",
"max-limit": "अधिकतम सीमा तक पहुँच गया"
},
"actionMessages": {
"decommission": {
Expand Down Expand Up @@ -381,7 +382,6 @@
"language": "अंग्रेज़ी",
"keyboard-tooltip": "वर्चुअल कीबोर्ड के लिए क्लिक करें (अंग्रेज़ी)",
"update": "अद्यतन",
"max-limit": "अधिकतम सीमा तक पहुँच गया",
"validationMessages": {
"name": {
"required": "पॉलिसी का नाम आवश्यक है",
Expand Down
4 changes: 2 additions & 2 deletions pmp-ui/src/assets/i18n/kan.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
"validationMessages": {
"required": "ದಿನಾಂಕ ಶ್ರೇಣಿಯ ಮೂಲಕ ಫಿಲ್ಟರ್ ಮಾಡಲು ದಯವಿಟ್ಟು ‘ಇದಕ್ಕೆ’ ಮತ್ತು ‘ಇಂದ’ ಕ್ಷೇತ್ರವನ್ನು ಭರ್ತಿ ಮಾಡಿ",
"range": "'ಟು' ದಿನಾಂಕವು 'ಇಂದ' ದಿನಾಂಕ' ೊದಲು ಇರುವಂತಿಲ್ಲ",
"invalid": "ದಯವಿಟ್ಟು ದಿನಾಂಕಕ್ಕಾಗಿ ಮಾನ್ಯವಾದ ಮೌಲ್ಯವನ್ನು ಆಯ್ಕೆಮಾಡಿ"
"invalid": "ದಯವಿಟ್ಟು ದಿನಾಂಕಕ್ಕಾಗಿ ಮಾನ್ಯವಾದ ಮೌಲ್ಯವನ್ನು ಆಯ್ಕೆಮಾಡಿ",
"max-limit": "ಗರಿಷ್ಠ ಮಿತಿಯನ್ನು ತಲುಪಿದೆ"
},
"actionMessages": {
"decommission": {
Expand Down Expand Up @@ -381,7 +382,6 @@
"language": "ಆಂಗ್ಲ",
"keyboard-tooltip": "ವರ್ಚುವಲ್ ಕೀಬೋರ್ಡ್‌ಗಾಗಿ ಕ್ಲಿಕ್ ಮಾಡಿ (ಇಂಗ್ಲಿಷ್)",
"update": "ನವೀಕರಿಸಿ",
"max-limit": "ಗರಿಷ್ಠ ಮಿತಿಯನ್ನು ತಲುಪಿದೆ",
"validationMessages": {
"name": {
"required": "ನೀತಿಯ ಹೆಸರು ಅಗತ್ಯವಿದೆ",
Expand Down
4 changes: 2 additions & 2 deletions pmp-ui/src/assets/i18n/tam.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
"validationMessages": {
"required": "தேதி வரம்பின்படி வடிகட்ட, ‘இருந்து’ மற்றும் ‘வருதல்’ ஆகிய இரண்டையும் நிரப்பவும்",
"range": "'இன்று' தேதி 'இருந்து' தேதிக்கு முன் இருக்கக்கூடாது'",
"invalid": "தேதிக்கான சரியான மதிப்பைத் தேர்ந்தெடுக்கவும்"
"invalid": "தேதிக்கான சரியான மதிப்பைத் தேர்ந்தெடுக்கவும்",
"max-limit": "அதிகபட்ச வரம்பை எட்டிவிட்டது"
},
"actionMessages": {
"decommission": {
Expand Down Expand Up @@ -381,7 +382,6 @@
"language": "ஆங்கிலம்",
"keyboard-tooltip": "மெய்நிகர் விசைப்பலகைக்கு (ஆங்கிலம்) கிளிக் செய்யவும்",
"update": "புதுப்பிக்கவும்",
"max-limit": "அதிகபட்ச வரம்பை எட்டிவிட்டது",
"validationMessages": {
"name": {
"required": "பாலிசியின் பெயர் தேவை",
Expand Down
Loading