Skip to content

Commit 323b8c7

Browse files
committed
ftr: romved old title translation approach
TRACEFOSS-891
1 parent 05e847e commit 323b8c7

21 files changed

+22
-51
lines changed

src/app/modules/core/layout/header/header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</div>
4646

4747
<div class="header--app-header">
48-
<h3>{{ 'routing.' + activeMenu | i18n }}</h3>
48+
<h3>{{ 'pageTitle.' + activeMenu | i18n }}</h3>
4949
</div>
5050

5151
<img src="/assets/images/header-subtract.png" class="header--stylish-curve" alt="" />

src/app/modules/core/layout/header/header.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ export class HeaderComponent {
5151
}
5252

5353
public openDocumentation(): void {
54-
window.open('https://eclipse-tractusx.github.io/traceability-foss-backend/docs/', '_blank');
54+
window.open('https://eclipse-tractusx.github.io/traceability-foss-backend/docs/', '_blank', 'noopener');
5555
}
5656
}

src/app/modules/core/layout/sidenav/sidenav.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<mat-sidenav
3030
#sidenav
3131
[fixedInViewport]="true"
32-
[fixedTopGap]="64"
3332
(openedChange)="sidenavAction($event)"
3433
mode="over"
3534
class="sidenav--content"

src/app/modules/page/dashboard/presentation/dashboard.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<div class="flex justify-between items-center">
6666
<h3 class="mb-4 flex items-center">
6767
<mat-icon>find_in_page</mat-icon>
68-
{{ 'commonInvestigation.title' | i18n }}
68+
{{ 'pageTitle.investigations' | i18n }}
6969
</h3>
7070
<app-button
7171
[color]="'primary'"

src/app/modules/page/dashboard/presentation/dashboard.component.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ describe('Dashboard', () => {
7676
});
7777

7878
describe('investigations', () => {
79-
it('should render investigation component', async () => {
80-
await renderDashboard();
81-
82-
expect(await screen.findByText('commonInvestigation.title')).toBeInTheDocument();
83-
});
84-
8579
it('should render count for investigations', async () => {
8680
await renderDashboard();
8781

src/app/modules/page/investigations/detail/investigation-detail.component.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ describe('InvestigationDetailComponent', () => {
4747
});
4848
};
4949

50-
it('should render', async () => {
51-
await renderInvestigationDetail();
52-
expect(await screen.getByText('commonInvestigation.title')).toBeInTheDocument();
53-
});
54-
5550
it('should render specific text and additional table for received investigation', async () => {
5651
await renderInvestigationDetail();
5752
await waitFor(() => expect(screen.getByText('pageInvestigation.subHeadline.affectedParts')).toBeInTheDocument());

src/app/modules/page/investigations/presentation/investigations.component.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ describe('InvestigationsComponent', () => {
3434
});
3535
};
3636

37-
it('should render', async () => {
38-
await renderInvestigations();
39-
expect(await waitFor(() => screen.getByText('commonInvestigation.title'))).toBeInTheDocument();
40-
});
41-
4237
it('should call detail page with correct ID', async () => {
4338
const { fixture } = await renderInvestigations();
4439
fireEvent.click((await waitFor(() => screen.getAllByTestId('table-menu-button')))[0]);

src/app/modules/page/other-parts/presentation/other-parts.component.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ describe('Other Parts', () => {
5151
roles,
5252
});
5353

54-
it('should render part header', async () => {
55-
await renderOtherParts();
56-
57-
expect(screen.getByText('pageOtherParts.title')).toBeInTheDocument();
58-
});
59-
6054
it('should render part table', async () => {
6155
await renderOtherParts();
6256

src/app/modules/page/parts/presentation/parts.component.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ describe('Parts', () => {
3939
});
4040
};
4141

42-
it('should render part header', async () => {
43-
await renderParts();
44-
45-
expect(screen.getByText('pageParts.title')).toBeInTheDocument();
46-
});
47-
4842
it('should render part table', async () => {
4943
await renderParts();
5044

src/assets/locales/de/common.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
"admin": "Verwaltung",
1111
"investigations": "Quality Investigation"
1212
},
13+
"pageTitle": {
14+
"dashboard": "Dashboard",
15+
"parts": "Meine Produkte",
16+
"otherParts": "Andere Produkte",
17+
"about": "Über Catena-X Open-Source Rückverfolgbarkeit",
18+
"relations": "Beziehungen",
19+
"admin": "Verwaltung Catena-X",
20+
"investigations": "Qualitätsuntersuchung"
21+
},
1322
"layout": {
1423
"nav": {
1524
"openUserMenu": "Benutzermenü öffnen",
@@ -115,7 +124,6 @@
115124
"range": "{{startIndex}} – {{endIndex}} von {{length}}"
116125
},
117126
"commonInvestigation": {
118-
"title": "Qualitätsuntersuchung",
119127
"viewAll": "Alle anzeigen",
120128
"tabs": {
121129
"received": "Zugewiesene",
@@ -148,14 +156,12 @@
148156
"declineTitle": "Ablehnung der Untersuchung",
149157
"declineDescription": "Sind Sie sicher, dass Sie diese Untersuchung ablehnen wollen?",
150158
"declineReasonHint": "Geben Sie den Grund für die Ablehnung dieser Untersuchung ein.",
151-
152159
"successfullyAccepted": "Untersuchung wurde erfolgreich angenommen.",
153160
"successfullyAcknowledged": "Untersuchung wurde erfolgreich bestätigt",
154161
"successfullyApproved": "Untersuchung wurde erfolgreich genehmigt.",
155162
"successfullyCanceled": "Untersuchung wurde erfolgreich gelöscht.",
156163
"successfullyClosed": "Untersuchung wurde erfolgreich geschlossen.",
157164
"successfullyDeclined": "Untersuchung wurde erfolgreich abgelehnt.",
158-
159165
"failedAccept": "Untersuchung konnte nicht akzeptiert werden, bitte versuchen Sie es erneut.",
160166
"failedAcknowledge": "Untersuchung konnte nicht bestätigt werden, bitte versuchen Sie es erneut.",
161167
"failedApprove": "Die Untersuchung konnte nicht genehmigt werden, bitte versuchen Sie es erneut.",

0 commit comments

Comments
 (0)