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 = {
|
export const longtitudeDesc = {
|
||||||
desc: 'The (approximate) longtitude of your repository/journal\'s location',
|
desc: 'The (approximate) longtitude of your repository/journal\'s location',
|
||||||
label: 'Longtitude',
|
label: 'Longtitude',
|
||||||
mandatory: true,
|
mandatory: false,
|
||||||
recommended: false
|
recommended: false
|
||||||
};
|
};
|
||||||
|
|
||||||
export const latitudeDesc = {
|
export const latitudeDesc = {
|
||||||
desc: 'The (approximate) latitude of your repository/journal\'s location',
|
desc: 'The (approximate) latitude of your repository/journal\'s location',
|
||||||
label: 'Latitude',
|
label: 'Latitude',
|
||||||
mandatory: true,
|
mandatory: false,
|
||||||
recommended: false
|
recommended: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -142,12 +142,12 @@ export class DatasourceUpdateFormComponent implements OnInit {
|
||||||
|
|
||||||
// FIXME: Use eoscDatasourceType when we support the new model
|
// FIXME: Use eoscDatasourceType when we support the new model
|
||||||
if (this.mode === 'cris') {
|
if (this.mode === 'cris') {
|
||||||
this.longtitudeDesc.mandatory = false;
|
// this.longtitudeDesc.mandatory = false;
|
||||||
this.latitudeDesc.mandatory = false;
|
// this.latitudeDesc.mandatory = false;
|
||||||
this.datasourceTypeDesc.label = 'CRIS scope/type';
|
this.datasourceTypeDesc.label = 'CRIS scope/type';
|
||||||
} else {
|
} else {
|
||||||
this.longtitudeDesc.mandatory = true;
|
// this.longtitudeDesc.mandatory = true;
|
||||||
this.latitudeDesc.mandatory = true;
|
// this.latitudeDesc.mandatory = true;
|
||||||
this.datasourceTypeDesc.label = 'Data source type';
|
this.datasourceTypeDesc.label = 'Data source type';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue