diff --git a/src/app/core/components/dialog/dialog.component.ts b/src/app/core/components/dialog/dialog.component.ts index 98d086f1..7ad98992 100644 --- a/src/app/core/components/dialog/dialog.component.ts +++ b/src/app/core/components/dialog/dialog.component.ts @@ -442,7 +442,12 @@ export class DialogComponent implements OnInit { (res: any) => { this.dataLoaded = true; if (res) { - this.dialogRef.close(false); + if (res.errors && res.errors.length > 0) { + this.dialogRef.close(true); + Utils.showErrorMessage(this.resourceBundleJson, res.errors, this.dialog); + } else { + this.dialogRef.close(false); + } } else { Utils.showErrorMessage(this.resourceBundleJson, null, @@ -471,7 +476,12 @@ export class DialogComponent implements OnInit { (res: any) => { this.dataLoaded = true; if (res) { - this.dialogRef.close(false); + if (res.errors && res.errors.length > 0) { + this.dialogRef.close(true); + Utils.showErrorMessage(this.resourceBundleJson, res.errors, this.dialog); + } else { + this.dialogRef.close(false); + } } else { Utils.showErrorMessage(this.resourceBundleJson, null, diff --git a/src/assets/i18n/ara.json b/src/assets/i18n/ara.json index 207b9802..bf6e239b 100644 --- a/src/assets/i18n/ara.json +++ b/src/assets/i18n/ara.json @@ -2034,6 +2034,14 @@ "TOOLKIT_REQ_ERR_052": "حدث خطأ أثناء جلب القالب", "TOOLKIT_REQ_ERR_053": "تنسيق إصدار القالب غير صالح.", "TOOLKIT_REQ_ERR_054": "حدث خطأ أثناء جلب نسخة القالب.", + "TOOLKIT_REQ_ERR_055": "تعليقات", + "TOOLKIT_REQ_ERR_056": "عنوان URL الأساسي لـ SDK", + "TOOLKIT_REQ_ERR_057": "اسم المجموعة", + "TOOLKIT_REQ_ERR_058": "اسم بيانات الاختبار", + "TOOLKIT_REQ_ERR_059": "اسم الملف", + "TOOLKIT_REQ_ERR_060": "اسم القالب", + "TOOLKIT_REQ_ERR_061": "إصدار", + "TOOLKIT_REQ_ERR_062": "نوع ملف الموارد", "TOOLKIT_REQ_ERR_500": "خطأ تقني", "TOOLKIT_DB_ERR_001": "لقد سبق لك إنشاء مشروع بالاسم", "TOOLKIT_DB_ERR_002": "لقد أضفت سابقًا بيانات اختبار القياسات الحيوية بالاسم", diff --git a/src/assets/i18n/eng.json b/src/assets/i18n/eng.json index a368a5c3..a74a26ac 100644 --- a/src/assets/i18n/eng.json +++ b/src/assets/i18n/eng.json @@ -2034,6 +2034,14 @@ "TOOLKIT_REQ_ERR_052": "Error while fetching template", "TOOLKIT_REQ_ERR_053": "Invalid template version format.", "TOOLKIT_REQ_ERR_054": "Error while fetching template version.", + "TOOLKIT_REQ_ERR_055": "comments", + "TOOLKIT_REQ_ERR_056": "SDK base URL", + "TOOLKIT_REQ_ERR_057": "collection name", + "TOOLKIT_REQ_ERR_058": "test data name", + "TOOLKIT_REQ_ERR_059": "file name", + "TOOLKIT_REQ_ERR_060": "template name", + "TOOLKIT_REQ_ERR_061": "version", + "TOOLKIT_REQ_ERR_062": "resource file type", "TOOLKIT_DB_ERR_001": "You have previously created a project with the same name", "TOOLKIT_DB_ERR_002": "You have previously added biometric test data with the same name", "TOOLKIT_DB_ERR_003": "You have previously created a collection with the same name", diff --git a/src/assets/i18n/fra.json b/src/assets/i18n/fra.json index 2538b716..87ecc31c 100644 --- a/src/assets/i18n/fra.json +++ b/src/assets/i18n/fra.json @@ -2034,6 +2034,14 @@ "TOOLKIT_REQ_ERR_052": "Erreur lors de la récupération du modèle", "TOOLKIT_REQ_ERR_053": "Format de version de modèle non valide.", "TOOLKIT_REQ_ERR_054": "Erreur lors de la récupération de la version du modèle.", + "TOOLKIT_REQ_ERR_055": "commentaires", + "TOOLKIT_REQ_ERR_056": "URL de base du SDK", + "TOOLKIT_REQ_ERR_057": "nom de la collection", + "TOOLKIT_REQ_ERR_058": "nom des données de test", + "TOOLKIT_REQ_ERR_059": "nom de fichier", + "TOOLKIT_REQ_ERR_060": "nom du modèle", + "TOOLKIT_REQ_ERR_061": "version", + "TOOLKIT_REQ_ERR_062": "type de fichier de ressources", "TOOLKIT_REQ_ERR_500": "Erreur technique", "TOOLKIT_DB_ERR_001": "Vous avez précédemment créé un projet avec le nom", "TOOLKIT_DB_ERR_002": "Vous avez précédemment ajouté des données de test biométrique avec le nom",