Merge branch 'ui-redesign' of gitlab.eudat.eu:dmp/OpenAIRE-EUDAT-DMP-service-pilot into ui-redesign
This commit is contained in:
commit
f451314473
|
@ -101,6 +101,8 @@ public class DmpQuickWizardModel {
|
|||
dataManagementPlanEntity.setAssociatedUsers(user);
|
||||
dataManagementPlanEntity.setExtraProperties(new HashMap<>());
|
||||
dataManagementPlanEntity.getExtraProperties().put("language", this.language);
|
||||
dataManagementPlanEntity.getExtraProperties().put("visible", false);
|
||||
dataManagementPlanEntity.getExtraProperties().put("contact", principal.getId().toString());
|
||||
return dataManagementPlanEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -228,6 +228,8 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
|
|||
this.dmp.project = new ProjectFormModel();
|
||||
this.dmp.funder = new FunderFormModel();
|
||||
this.dmp.extraProperties = new ExtraPropertiesFormModel();
|
||||
this.dmp.extraProperties.visible = false;
|
||||
this.dmp.extraProperties.contact = this.authService.current().id;
|
||||
this.formGroup = this.dmp.buildForm();
|
||||
this.registerFormEventsForNewItem();
|
||||
if (this.isAuthenticated) {
|
||||
|
|
|
@ -23,8 +23,8 @@ import { DmpUploadDialogue } from './upload-dialogue/dmp-upload-dialogue.compone
|
|||
import { UiNotificationService, SnackBarNotificationLevel } from '@app/core/services/notification/ui-notification-service';
|
||||
import { isNullOrUndefined } from 'util';
|
||||
import { AuthService } from '@app/core/services/auth/auth.service';
|
||||
import { DmpCriteriaDialogComponent } from './criteria/dmp-criteria-dialog.component';
|
||||
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
||||
import { DmpCriteriaDialogComponent } from './criteria/dmp-criteria-dialog.component';
|
||||
|
||||
|
||||
@Component({
|
||||
|
@ -250,6 +250,10 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread
|
|||
|
||||
getDefaultCriteria(): DmpCriteria {
|
||||
const defaultCriteria = new DmpCriteria();
|
||||
if (this.isPublic) {
|
||||
defaultCriteria.isPublic = true;
|
||||
defaultCriteria.onlyPublic = true;
|
||||
}
|
||||
return defaultCriteria;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue