minor ui changes
This commit is contained in:
parent
83ee9a7e45
commit
60899bfea3
|
@ -291,10 +291,10 @@
|
||||||
<div class="floating-btn">
|
<div class="floating-btn">
|
||||||
<button *ngIf="stepper?.selectedIndex > 0" [@previous_btn] mat-button class="navigate-btn" (click)="stepper?.previous()">
|
<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>
|
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
|
||||||
{{'DMP-EDITOR.STEPPER.PREVIOUS' | translate}}
|
{{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.PREVIOUS' | translate}}
|
||||||
</button>
|
</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)}">
|
<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>
|
<mat-icon class="back-icon pointer">chevron_right</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -220,6 +220,14 @@
|
||||||
"TOTAL": "Total",
|
"TOTAL": "Total",
|
||||||
"SELECTED": "Selected"
|
"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": {
|
"SETTINGS-PICKER": {
|
||||||
|
@ -2097,7 +2105,7 @@
|
||||||
"SELECT": "Select an option",
|
"SELECT": "Select an option",
|
||||||
"LIKE": "Search"
|
"LIKE": "Search"
|
||||||
},
|
},
|
||||||
"DATASET-EDITOR": {
|
"DATASET-EDITOR1": {
|
||||||
"TITLE": {
|
"TITLE": {
|
||||||
"NEW": "New Data Management Plan",
|
"NEW": "New Data Management Plan",
|
||||||
"EDIT": "Edit",
|
"EDIT": "Edit",
|
||||||
|
|
|
@ -23,9 +23,10 @@ export class PendingChangesGuard implements CanDeactivate<BasePendingChangesComp
|
||||||
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
||||||
maxWidth: '300px',
|
maxWidth: '300px',
|
||||||
data: {
|
data: {
|
||||||
|
warning: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.TITLE'),
|
||||||
message: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.MESSAGE'),
|
message: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.MESSAGE'),
|
||||||
cancelButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.NO'),
|
cancelButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.CANCEL'),
|
||||||
confirmButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.YES')
|
confirmButton: this.language.instant('COMMONS.PENDING-FORM-CHANGES-DIALOG.ACTIONS.LEAVE')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return dialogRef.afterClosed().pipe(map(x => x ? true : false));
|
return dialogRef.afterClosed().pipe(map(x => x ? true : false));
|
||||||
|
|
Loading…
Reference in New Issue