diff --git a/dmp-frontend/src/app/library/guided-tour/guided-tour.component.scss b/dmp-frontend/src/app/library/guided-tour/guided-tour.component.scss index 1e7d652a2..71232d8f8 100644 --- a/dmp-frontend/src/app/library/guided-tour/guided-tour.component.scss +++ b/dmp-frontend/src/app/library/guided-tour/guided-tour.component.scss @@ -179,6 +179,8 @@ ngx-guided-tour { .tour-buttons { overflow: hidden; // clearfix padding: 10px 70px 18px 65px; /*custom add*/ + display: flex; + justify-content: space-between; button.link-button { padding-left: 0; @@ -203,9 +205,11 @@ ngx-guided-tour { border-left: 0; /*custom add*/ - padding: 0; - float: right; - width: 133px; + // padding: 0; + padding-right: 1em; + padding-left: 1em; + // float: right; + min-width: 133px; height: 40px; border: 1px solid #129d99; background: #ffffff 0% 0% no-repeat padding-box; @@ -222,9 +226,11 @@ ngx-guided-tour { // padding-right: 10px; /*custom add*/ - float: left; - padding: 10px 0px; - width: 101px; + // float: left; + // padding: 10px 0px; + padding-left: 1em; + padding-right: 1em; + min-width: 101px; background: #129d99 0% 0% no-repeat padding-box; } diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts index 76dc2c6ff..b7f55a84f 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts @@ -560,7 +560,17 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC onCallbackSuccessAddNew(dmp?: DmpModel) { // this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success); // this.router.navigate(['/datasets', 'new', dmp.id]); - this.editDataset(dmp.id, true); + // const showDialog = this.isNew && (this.formGroup.get('datasets') ); + + let showDialog = false; + + try{ + showDialog = this.isNew && !this.formGroup.get('datasets').value.length; + }catch{ + + } + + this.editDataset(dmp.id, true, showDialog); } public setErrorModel(validationErrorModel: ValidationErrorModel) { @@ -877,6 +887,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC } + // const showDialog = this.hasProfile() && this.isNew; this.onSubmit(true, false); // this.formSubmit(true, false); @@ -920,21 +931,34 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC }); } - editDataset(id: string, isNew: boolean) { - const dialogRef = this.dialog.open(DmpToDatasetDialogComponent, { - width: '500px', - autoFocus: false, - restoreFocus: false, - }); - dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => { - if (result) { - if (isNew) { - this.router.navigate(['/datasets', 'new', id]); - } else { - this.router.navigate(['/datasets', 'edit', id]); + editDataset(id: string, isNew: boolean, showModal:boolean = false) { + + + if(showModal){ + const dialogRef = this.dialog.open(DmpToDatasetDialogComponent, { + width: '500px', + autoFocus: false, + restoreFocus: false, + }); + dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => { + if (result) { + if (isNew) { + this.router.navigate(['/datasets', 'new', id]); + } else { + this.router.navigate(['/datasets', 'edit', id]); + } } + }); + }else{ + if (isNew) { + this.router.navigate(['/datasets', 'new', id]); + } else { + this.router.navigate(['/datasets', 'edit', id]); } - }); + + } + + } saveAndFinalize() { diff --git a/dmp-frontend/src/app/ui/dmp/listing/upload-dialogue/dmp-upload-dialogue.component.scss b/dmp-frontend/src/app/ui/dmp/listing/upload-dialogue/dmp-upload-dialogue.component.scss index efe9825bd..b4e6fdf6c 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/upload-dialogue/dmp-upload-dialogue.component.scss +++ b/dmp-frontend/src/app/ui/dmp/listing/upload-dialogue/dmp-upload-dialogue.component.scss @@ -79,7 +79,7 @@ } .attach-file { - width: 156px; + min-width: 156px; height: 44px; color: #ffffff; background: #129d99 0% 0% no-repeat padding-box; diff --git a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-composite-title/form-composite-title.component.scss b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-composite-title/form-composite-title.component.scss index b49bac376..3024dfe73 100644 --- a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-composite-title/form-composite-title.component.scss +++ b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-composite-title/form-composite-title.component.scss @@ -18,6 +18,6 @@ } h6 { - // text-transform: capitalize; + text-transform: none; font-weight: 400; } diff --git a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-section/form-section.component.scss b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-section/form-section.component.scss index e4523fbf3..606e1a5bb 100644 --- a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-section/form-section.component.scss +++ b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-section/form-section.component.scss @@ -24,7 +24,8 @@ } .panel-desc { - text-transform: capitalize; + // text-transform: capitalize; + text-transform: none; font-weight: 400; margin-top: .5rem; }