diff --git a/locales/ara.json b/locales/ara.json index 90adc79b63..a366067ebf 100644 --- a/locales/ara.json +++ b/locales/ara.json @@ -204,6 +204,12 @@ }, "AddVcModal": { "requestingCredential": "جارٍ طلب بيانات الاعتماد...", + "confirmationDialog": { + "title": "هل تريد إلغاء التنزيل؟", + "message": "بمجرد الإلغاء، لن يتم تنزيل بطاقتك وستحتاج إلى إعادة بدء التنزيل.", + "wait": "لا، سأنتظر", + "cancel": "نعم، إلغاء" + }, "errors": { "input": { "empty": "فارغًا", diff --git a/locales/en.json b/locales/en.json index 30b6912a62..2cb41c1d3b 100644 --- a/locales/en.json +++ b/locales/en.json @@ -205,6 +205,12 @@ }, "AddVcModal": { "requestingCredential": "Requesting credential...", + "confirmationDialog": { + "title": "Do you want to cancel downloading?", + "message": "Once cancelled, your card will not be downloaded and you need to reinitiate the download.", + "wait": "No, I’ll wait", + "cancel": "Yes, Cancel" + }, "errors": { "input": { "empty": "The input cannot be empty", diff --git a/locales/fil.json b/locales/fil.json index 87c3fa28e6..9398494275 100644 --- a/locales/fil.json +++ b/locales/fil.json @@ -203,6 +203,12 @@ }, "AddVcModal": { "requestingCredential": "Humihiling ng kredensyal...", + "confirmationDialog": { + "title": "Gusto mo bang kanselahin ang pag-download?", + "message": "Kapag nakansela, hindi na mada-download ang iyong card at kailangan mong simulan muli ang pag-download.", + "wait": "Hindi, maghihintay ako", + "cancel": "Oo, Kanselahin" + }, "errors": { "input": { "empty": "Hindi maaaring walang laman ang input", diff --git a/locales/hin.json b/locales/hin.json index 2840e50a14..b57110f105 100644 --- a/locales/hin.json +++ b/locales/hin.json @@ -201,6 +201,12 @@ }, "AddVcModal": { "requestingCredential": "क्रेडेंशियल का अनुरोध कर रहा है...", + "confirmationDialog": { + "title": "क्या आप डाउनलोडिंग रद्द करना चाहते हैं?", + "message": "एक बार रद्द होने पर, आपका कार्ड डाउनलोड नहीं किया जाएगा और आपको डाउनलोड फिर से शुरू करना होगा।", + "wait": "नहीं, मैं इंतजार करूंगा", + "cancel": "हाँ, रद्द करें" + }, "errors": { "input": { "empty": "इनपुट खाली नहीं हो सकता", diff --git a/locales/kan.json b/locales/kan.json index a5383d43ba..01454fe612 100644 --- a/locales/kan.json +++ b/locales/kan.json @@ -200,6 +200,12 @@ }, "AddVcModal": { "requestingCredential": "ರುಜುವಾತುಗಳನ್ನು ವಿನಂತಿಸಲಾಗುತ್ತಿದೆ...", + "confirmationDialog": { + "title": "ನೀವು ಡೌನ್‌ಲೋಡ್ ಮಾಡುವುದನ್ನು ರದ್ದುಗೊಳಿಸಲು ಬಯಸುವಿರಾ?", + "message": "ಒಮ್ಮೆ ರದ್ದುಗೊಳಿಸಿದರೆ, ನಿಮ್ಮ ಕಾರ್ಡ್ ಡೌನ್‌ಲೋಡ್ ಆಗುವುದಿಲ್ಲ ಮತ್ತು ನೀವು ಡೌನ್‌ಲೋಡ್ ಅನ್ನು ಮರುಪ್ರಾರಂಭಿಸಬೇಕಾಗುತ್ತದೆ.", + "wait": "ಇಲ್ಲ, ನಾನು ಕಾಯುತ್ತೇನೆ", + "cancel": "ಹೌದು, ರದ್ದುಮಾಡಿ" + }, "errors": { "input": { "empty": "ಇನ್‌ಪುಟ್ ಖಾಲಿ ಇರುವಂತಿಲ್ಲ", diff --git a/locales/spa.json b/locales/spa.json index aefe5a1670..0edfaf3f2b 100644 --- a/locales/spa.json +++ b/locales/spa.json @@ -117,6 +117,12 @@ }, "AddVcModal": { "requestingCredential": "Solicitando credencial...", + "confirmationDialog": { + "title": "Quieres cancelar la descarga?", + "message": "OUna vez cancelada, su tarjeta no se descargará y deberá reiniciar la descarga.", + "wait": "No, esperaré", + "cancel": "Sí, cancelar" + }, "errors": { "input": { "empty": "El campo no puede estar vacío", diff --git a/locales/tam.json b/locales/tam.json index 369d8ab5a1..60bf85e5d6 100644 --- a/locales/tam.json +++ b/locales/tam.json @@ -200,6 +200,12 @@ }, "AddVcModal": { "requestingCredential": "நற்சான்றிதழைக் கோருகிறது...", + "confirmationDialog": { + "title": "பதிவிறக்குவதை ரத்துசெய்ய விரும்புகிறீர்களா?", + "message": "ரத்துசெய்யப்பட்டதும், உங்கள் கார்டு பதிவிறக்கம் செய்யப்படாது மேலும் நீங்கள் பதிவிறக்கத்தை மீண்டும் தொடங்க வேண்டும்.", + "wait": "இல்லை, நான் காத்திருப்பேன்", + "cancel": "ஆம், ரத்துசெய்" + }, "errors": { "input": { "empty": "உள்ளீடு காலியாக இருக்க முடியாது", diff --git a/screens/Home/MyVcs/AddVcModal.tsx b/screens/Home/MyVcs/AddVcModal.tsx index cc17e4ce2f..7ee9b8e72d 100644 --- a/screens/Home/MyVcs/AddVcModal.tsx +++ b/screens/Home/MyVcs/AddVcModal.tsx @@ -5,6 +5,7 @@ import {OtpVerificationModal} from './OtpVerificationModal'; import {IdInputModal} from './IdInputModal'; import {useTranslation} from 'react-i18next'; import {GET_INDIVIDUAL_ID} from '../../../shared/constants'; +import {Button, Column} from '../../../components/ui'; export const AddVcModal: React.FC = props => { const {t} = useTranslation('AddVcModal'); @@ -15,7 +16,8 @@ export const AddVcModal: React.FC = props => { GET_INDIVIDUAL_ID({id: '', idType: 'UIN'}); } return ( - !controller.isAcceptingOtpInput && !controller.isRequestingCredential + (!controller.isAcceptingOtpInput && !controller.isRequestingCredential) || + !controller.isDownloadCancelled ); }; @@ -34,7 +36,9 @@ export const AddVcModal: React.FC = props => { /> = props => { title={t('requestingCredential')} progress /> + + + +