minor ui changes

This commit is contained in:
Diamantis Tziotzios 2024-03-11 13:26:58 +02:00
parent 83ee9a7e45
commit 60899bfea3
3 changed files with 14 additions and 5 deletions

View File

@ -291,10 +291,10 @@
<div class="floating-btn">
<button *ngIf="stepper?.selectedIndex > 0" [@previous_btn] mat-button class="navigate-btn" (click)="stepper?.previous()">
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
{{'DMP-EDITOR.STEPPER.PREVIOUS' | translate}}
{{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.PREVIOUS' | translate}}
</button>
<button *ngIf="stepper?.selectedIndex < (steps.length-1)" mat-button class="navigate-btn ml-3" [@next_btn] (click)="validateStep(stepper?.selectedIndex);stepper?.next();" [ngClass]="{'navigate-btn-disabled': !isStepCompleted(stepper?.selectedIndex)}">
<span>{{'DMP-EDITOR.STEPPER.NEXT' | translate}}</span>
<span>{{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.NEXT' | translate}}</span>
<mat-icon class="back-icon pointer">chevron_right</mat-icon>
</button>
</div>

View File

@ -220,6 +220,14 @@
"TOTAL": "Total",
"SELECTED": "Selected"
}
},
"PENDING-FORM-CHANGES-DIALOG": {
"TITLE": "You have unsaved changes!",
"MESSAGE": "If you leave, your changes will be lost.",
"ACTIONS": {
"CANCEL": "Cancel",
"LEAVE": "LEAVE"
}
}
},
"SETTINGS-PICKER": {
@ -2097,7 +2105,7 @@
"SELECT": "Select an option",
"LIKE": "Search"
},
"DATASET-EDITOR": {
"DATASET-EDITOR1": {
"TITLE": {
"NEW": "New Data Management Plan",
"EDIT": "Edit",

View File

@ -23,9 +23,10 @@ export class PendingChangesGuard implements CanDeactivate<BasePendingChangesComp
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
maxWidth: '300px',
data: {
warning: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.TITLE'),
message: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.MESSAGE'),
cancelButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.NO'),
confirmButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.YES')
cancelButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.CANCEL'),
confirmButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.LEAVE')
}
});
return dialogRef.afterClosed().pipe(map(x => x ? true : false));