Fix: Missing labels in the report views

This commit is contained in:
Jose Alberto Hernandez
2024-04-15 09:05:09 -06:00
committed by Jose Alberto Hernandez
parent e09fccf14b
commit cdc9d74122
26 changed files with 46 additions and 26 deletions
@@ -71,7 +71,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button>
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div>
</mat-card-content>
+10 -10
View File
@@ -57,9 +57,9 @@ export class KeyboardShortcutsConfiguration {
// Create Client - ctrl + c
{
title: 'Create Client',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'c',
route: 'clients/create'
},
@@ -120,18 +120,18 @@ export class KeyboardShortcutsConfiguration {
// Accounting - ctrl + a
{
title: 'Accounting',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'a',
route: 'accounting'
},
// Save/Submit Forms - ctrl + s
{
title: 'Save/Submit Forms',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 's',
route: '',
id: 'submit'
@@ -139,9 +139,9 @@ export class KeyboardShortcutsConfiguration {
// Cancel - ctrl + x
{
title: 'Cancel',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'x',
route: '',
id: 'cancel'
@@ -149,9 +149,9 @@ export class KeyboardShortcutsConfiguration {
// Help - ctrl + h
{
title: 'Help',
ctrlKey: true,
ctrlKey: false,
shiftKey: false,
altKey: false,
altKey: true,
key: 'h',
route: '',
id: 'help'
@@ -11,7 +11,7 @@
<td fxFlex="25%" class="left">
<div [ngClass]="itemStatus(activeTransferData.status)">
<fa-icon icon="stop"></fa-icon>
<span class="m-l-10 status">{{activeTransferData.status}}</span>
<span class="m-l-10 external-asset-owner-status">{{activeTransferData.status}}</span>
</div>
</td>
<td fxFlex="25%">
@@ -33,7 +33,7 @@
margin: 1%;
}
.status {
.external-asset-owner-status {
color: black;
}
@@ -124,7 +124,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button>
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div>
</mat-card-content>
@@ -32,7 +32,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button>
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div>
</mat-card-content>
+5 -1
View File
@@ -1,15 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
@Pipe({
name: 'yesNo'
})
export class YesnoPipe implements PipeTransform {
constructor(private translateService: TranslateService) { }
transform(value: boolean, ...args: unknown[]): string {
if (value == null) {
return null;
}
return value ? 'Yes' : 'No';
const result = value ? 'Yes' : 'No';
return this.translateService.instant('labels.buttons.' + result);
}
}
@@ -141,7 +141,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button>
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div>
</mat-card-content>
@@ -41,7 +41,7 @@
<div class="alert" *ngIf="!hideOutput && toBeExportedToRepo">
<div class="message">
<i class="fa fa-exclamation-circle alert-check"></i>
{{'labels.text.The report request has been sent and the report will be exported to file repository' | translate}}
{{'labels.text.The report request' | translate}}
</div>
</div>
@@ -87,7 +87,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../../']">{{ 'Back' |
<button type="button" mat-raised-button color="primary" [routerLink]="['../../']">{{ 'labels.buttons.Back' |
translate}}</button>
</div>
</mat-card-content>
@@ -121,7 +121,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button>
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div>
</mat-card-content>
@@ -75,7 +75,7 @@
</div>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'Back' | translate}}</button>
<button type="button" mat-raised-button color="primary" [routerLink]="['../']">{{ 'labels.buttons.Back' | translate}}</button>
</div>
</mat-card-content>