longtitude and latitude are no longer mandatory
This commit is contained in:
parent
2580dc6cf8
commit
c3d3dceb35
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue