Skip to content

Commit fa0c058

Browse files
committed
WEB-893: Replace hardcoded 'Reload Settings' strings with translate pipe in login component
1 parent f82ad09 commit fa0c058

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/app/login/login.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ <h1 class="hero-title-minimal">{{ 'APP_NAME' | translate }}</h1>
170170
mat-icon-button
171171
(click)="reloadSettings()"
172172
class="reload-button"
173-
title="Reload Settings"
174-
matTooltip="Reload Settings"
175-
attr.aria-label="Reload Settings"
173+
[title]="'labels.buttons.Reload Settings' | translate"
174+
matTooltip="{{ 'labels.buttons.Reload Settings' | translate }}"
175+
[attr.aria-label]="'labels.buttons.Reload Settings' | translate"
176176
>
177177
<mifosx-m3-icon name="refresh"></mifosx-m3-icon>
178178
</button>

src/app/login/login.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/** Angular Imports */
1010
import { Component, OnInit, OnDestroy, inject } from '@angular/core';
1111
import { Router } from '@angular/router';
12-
1312
/** rxjs Imports */
1413

1514
import { Subscription } from 'rxjs';
@@ -46,7 +45,7 @@ import { MatMenuTrigger, MatMenu, MatMenuItem } from '@angular/material/menu';
4645
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
4746
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
4847
import { M3IconComponent } from '../shared/m3-ui/m3-icon/m3-icon.component';
49-
48+
import { MatTooltip } from '@angular/material/tooltip';
5049
import { VersionService } from '../system/version.service';
5150

5251
/**
@@ -69,7 +68,8 @@ import { VersionService } from '../system/version.service';
6968
FaIconComponent,
7069
MatMenu,
7170
MatMenuItem,
72-
M3IconComponent
71+
M3IconComponent,
72+
MatTooltip
7373
]
7474
})
7575
export class LoginComponent implements OnInit, OnDestroy {

src/assets/translations/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@
619619
"Add Entry": "Add Entry",
620620
"PRINT": "Print",
621621
"DONE": "Done",
622-
"Submitting": "Submitting"
622+
"Submitting": "Submitting",
623+
"Reload Settings": "Reload Settings"
623624
},
624625
"catalogs": {
625626
"Interest payment waiver": "Interest Payment Waiver",

0 commit comments

Comments
 (0)