Fix Bug 1975: Map view Issue in VIM account
- Map view in VIM account will not show Invalid location when the location is not provided.
- Added an error message for quota limit in project section when quota limit is exceeded
Change-Id: I175fd2df02d320534e0f02bf3e3dd1882f195546
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/app/projects/project-create-update/ProjectCreateUpdateComponent.ts b/src/app/projects/project-create-update/ProjectCreateUpdateComponent.ts
index 5eb2d5d..bb1207a 100644
--- a/src/app/projects/project-create-update/ProjectCreateUpdateComponent.ts
+++ b/src/app/projects/project-create-update/ProjectCreateUpdateComponent.ts
@@ -164,6 +164,12 @@
message: 'Done'
};
this.sharedService.cleanForm(this.projectForm);
+ for (const data of this.quotaItems) {
+ if (this.getFormControl(data.value).value > data.maxValue) {
+ this.notifierService.notify('error', this.translateService.instant('PAGE.PROJECT.QUOTALIMIT'));
+ break;
+ }
+ }
if (!this.projectForm.invalid) {
if (userType === 'Add') {
this.createProject();