- 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>
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();
if (this.getLocation !== []) {
this.getLocation.filter((loc: GetLocation) => {
if (loc.location !== '') {
- const getLatLong: string[] = loc.location.split(',');
- this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude];
- this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude];
- this.addMarker(getLatLong[0], loc.id, loc.name);
+ if (loc.location !== ',,') {
+ const getLatLong: string[] = loc.location.split(',');
+ this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude];
+ this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude];
+ this.addMarker(getLatLong[0], loc.id, loc.name);
+ }
}
});
}
"NEWPROJECT": "Nieuw project",
"CREATEDSUCCESSFULLY": "Projekt erfolgreich erstellt",
"UPDATEDSUCCESSFULLY": "Projekt erfolgreich aktualisiert",
- "QUOTA": "Kontingentlimit"
+ "QUOTA": "Kontingentlimit",
+ "QUOTALIMIT": "Kontingentlimit überschritten"
},
"NSPACKAGE": {
"ADDNSPACKAGE": "Verfassen Sie eine neue NS",
"NEWPROJECT": "New Project",
"CREATEDSUCCESSFULLY": "Project Created Successfully",
"UPDATEDSUCCESSFULLY": "Project Updated Successfully",
- "QUOTA": "Quota Limit"
+ "QUOTA": "Quota Limit",
+ "QUOTALIMIT": "Quota Limit exceeded"
},
"NSPACKAGE": {
"ADDNSPACKAGE": "Compose a new NS",
"NEWPROJECT": "Nuevo proyecto",
"CREATEDSUCCESSFULLY": "Proyecto creado correctamente",
"UPDATEDSUCCESSFULLY": "Proyecto actualizado correctamente",
- "QUOTA": "Límite de cuota"
+ "QUOTA": "Límite de cuota",
+ "QUOTALIMIT": "Límite de cuota excedido"
},
"NSPACKAGE": {
"ADDNSPACKAGE": "Componer un nuevo NS",
"NEWPROJECT": "Novo projeto",
"CREATEDSUCCESSFULLY": "Projeto criado com sucesso",
"UPDATEDSUCCESSFULLY": "Projeto atualizado com sucesso",
- "QUOTA": "Limite de cota"
+ "QUOTA": "Limite de cota",
+ "QUOTALIMIT": "Limite de cota excedido"
},
"NSPACKAGE": {
"ADDNSPACKAGE": "Componha um novo NS",