longtitude and latitude are no longer mandatory

This commit is contained in:
John Balasis 2022-09-06 13:43:41 +00:00
parent 2580dc6cf8
commit c3d3dceb35
2 changed files with 6 additions and 6 deletions

View File

@ -83,14 +83,14 @@ export const countryDesc = {
export const longtitudeDesc = {
desc: 'The (approximate) longtitude of your repository/journal\'s location',
label: 'Longtitude',
mandatory: true,
mandatory: false,
recommended: false
};
export const latitudeDesc = {
desc: 'The (approximate) latitude of your repository/journal\'s location',
label: 'Latitude',
mandatory: true,
mandatory: false,
recommended: false
};

View File

@ -142,12 +142,12 @@ export class DatasourceUpdateFormComponent implements OnInit {
// FIXME: Use eoscDatasourceType when we support the new model
if (this.mode === 'cris') {
this.longtitudeDesc.mandatory = false;
this.latitudeDesc.mandatory = false;
// this.longtitudeDesc.mandatory = false;
// this.latitudeDesc.mandatory = false;
this.datasourceTypeDesc.label = 'CRIS scope/type';
} else {
this.longtitudeDesc.mandatory = true;
this.latitudeDesc.mandatory = true;
// this.longtitudeDesc.mandatory = true;
// this.latitudeDesc.mandatory = true;
this.datasourceTypeDesc.label = 'Data source type';
}