Fixes buttons on admin dataset-profiles
This commit is contained in:
parent
b2a407d90e
commit
3d2dea572f
|
@ -6,9 +6,8 @@
|
||||||
<mat-error *ngIf="form.get('label').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
<mat-error *ngIf="form.get('label').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
||||||
</mat-error>
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<div class="row" *ngIf="form.get('status').value==1">
|
<div class="d-flex justify-content-end pb-3" *ngIf="form.get('status').value==1">
|
||||||
<div class="col"></div>
|
<button mat-raised-button color="primary" (click)="downloadXML();"
|
||||||
<button mat-raised-button class="col-auto" color="primary" (click)="downloadXML();"
|
|
||||||
type="button">{{ 'DATASET-WIZARD.ACTIONS.DOWNLOAD-XML' | translate }}</button>
|
type="button">{{ 'DATASET-WIZARD.ACTIONS.DOWNLOAD-XML' | translate }}</button>
|
||||||
</div>
|
</div>
|
||||||
<mat-horizontal-stepper [linear]="true" #stepper>
|
<mat-horizontal-stepper [linear]="true" #stepper>
|
||||||
|
@ -56,22 +55,25 @@
|
||||||
</div>
|
</div>
|
||||||
</mat-step> -->
|
</mat-step> -->
|
||||||
</mat-horizontal-stepper>
|
</mat-horizontal-stepper>
|
||||||
<div>
|
<div class="d-flex">
|
||||||
<!-- SAVE BUTTON -->
|
<!-- SAVE BUTTON -->
|
||||||
<div class="col-6" *ngIf="!viewOnly">
|
<div class="col-6 d-flex" *ngIf="!viewOnly">
|
||||||
<div class="row mt-4">
|
<div class="row mt-4">
|
||||||
<button mat-raised-button class="col-auto mr-2" color="primary" type="button col-auto" (click)='onSubmit()'
|
<button mat-raised-button class="col-auto mr-2" color="primary" type="button col-auto"
|
||||||
[disabled]="!form.valid">Save</button>
|
(click)='onSubmit()' [disabled]="!form.valid">Save</button>
|
||||||
<button mat-raised-button class="col-auto" color="primary" type="button col-auto" (click)='finalize()'
|
<button mat-raised-button class="col-auto" color="primary" type="button col-auto"
|
||||||
[disabled]="!form.valid">Finalize</button>
|
(click)='finalize()' [disabled]="!form.valid">Finalize</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- DELETE BUTTON -->
|
<!-- DELETE BUTTON -->
|
||||||
<div class="col-6" *ngIf="!isNew">
|
<div class="col-6" *ngIf="viewOnly"></div>
|
||||||
|
<div class="col-6 d-flex justify-content-end" *ngIf="!isNew">
|
||||||
|
<div class="row mt-4">
|
||||||
<button mat-raised-button color="primary" (click)="delete()">
|
<button mat-raised-button color="primary" (click)="delete()">
|
||||||
<mat-icon>delete</mat-icon>{{'DATASET-PROFILE-EDITOR.ACTIONS.DELETE' | translate}}
|
<mat-icon>delete</mat-icon>{{'DATASET-PROFILE-EDITOR.ACTIONS.DELETE' | translate}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -657,7 +657,7 @@
|
||||||
"DATASET-STATUS": {
|
"DATASET-STATUS": {
|
||||||
"DRAFT": "Draft",
|
"DRAFT": "Draft",
|
||||||
"FINALISED": "Finalized",
|
"FINALISED": "Finalized",
|
||||||
"ANY": "Any DMP status",
|
"ANY": "Any Dataset status",
|
||||||
"DRAFT-DESC": "Draft Registrations"
|
"DRAFT-DESC": "Draft Registrations"
|
||||||
},
|
},
|
||||||
"DATASET-ROLE": {
|
"DATASET-ROLE": {
|
||||||
|
|
Loading…
Reference in New Issue