Retyles button add dataset on overview and removes pop up on click
This commit is contained in:
parent
eb0bf2f003
commit
4c825d80b4
|
@ -97,11 +97,11 @@
|
|||
<span class="material-icons">horizontal_rule</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
<button mat-raised-button class="add-dataset-btn" *ngIf="isDraftDmp(dmp)" (click)="addNewDataset()">
|
||||
<div class="row mt-2 add-dataset-txt">
|
||||
<a class="add-dataset-btn" *ngIf="isDraftDmp(dmp)" [routerLink]="['/datasets/new/' + dmp.id]" target="_blank">
|
||||
<mat-icon>add</mat-icon>
|
||||
{{'DMP-LISTING.ACTIONS.ADD-DATASET-SHORT' | translate}}
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 p-0">
|
||||
|
|
|
@ -279,6 +279,7 @@
|
|||
|
||||
.dmp-label,
|
||||
.dataset-btn,
|
||||
.add-dataset-btn,
|
||||
.doi-panel,
|
||||
.researcher {
|
||||
display: flex;
|
||||
|
@ -286,8 +287,11 @@
|
|||
}
|
||||
|
||||
.add-dataset-btn {
|
||||
border: 2px solid #212121;
|
||||
border-radius: 30px;
|
||||
color: #212121 !important;
|
||||
}
|
||||
|
||||
.add-dataset-btn:hover {
|
||||
color: #129d99 !important;
|
||||
}
|
||||
|
||||
.show-more-btn {
|
||||
|
|
|
@ -656,23 +656,7 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
|
|||
// }
|
||||
|
||||
addNewDataset() {
|
||||
const dialogRef = this.dialog.open(StartNewDatasetDialogComponent, {
|
||||
disableClose: false,
|
||||
restoreFocus: false,
|
||||
data: {
|
||||
startNewDmp: false,
|
||||
formGroup: new DatasetWizardEditorModel().buildForm()
|
||||
}
|
||||
});
|
||||
dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => {
|
||||
if (result) {
|
||||
if (result.startNewDmp) {
|
||||
this.openNewDmpDialog();
|
||||
} else {
|
||||
this.router.navigate(['/datasets', 'new', result.formGroup.get('dmp').value.id]);
|
||||
}
|
||||
}
|
||||
});
|
||||
this.router.navigate(['/datasets', 'new', this.dmp.id]);
|
||||
}
|
||||
|
||||
createDoiLink(doi: string): string {
|
||||
|
|
Loading…
Reference in New Issue