Skip to content

Commit d40b917

Browse files
committed
fixed lint error
1 parent e3fb8cb commit d40b917

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/app/pages/settings/settings.component.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<span class="caption">{{ selectedMaxLevelCaption }}</span>
3535
</div>
3636
</mat-card-content>
37-
3837
</mat-card>
3938

4039
<mat-card class="progress-definitions-section">
@@ -161,8 +160,8 @@ <h2>Progress Definitions</h2>
161160
<mat-card class="terminology-section">
162161
<h2>Terminology</h2>
163162
<p class="terminology-description">
164-
Customize the terminology to how you organize your "teams" and how you group them
165-
(e.g. 'Apps' and 'Portfolios').
163+
Customize the terminology to how you organize your "teams" and how you group them (e.g. 'Apps'
164+
and 'Portfolios').
166165
</p>
167166
<div class="terminology-grid">
168167
<div class="terminology-row">

src/app/pages/settings/settings.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ export class SettingsComponent implements OnInit {
203203
onGroupLabelChange(): void {
204204
this.settings.setGroupLabel(this.customGroupLabel, this.customGroupLabelPlural);
205205
// Update plural placeholder when singular changes
206-
if (!this.customGroupLabelPlural || this.customGroupLabelPlural === this.customGroupLabel + 's') {
206+
if (
207+
!this.customGroupLabelPlural ||
208+
this.customGroupLabelPlural === this.customGroupLabel + 's'
209+
) {
207210
this.customGroupLabelPlural = '';
208211
}
209212
}

src/app/service/settings/settings.service.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ describe('SettingsService', () => {
5151
});
5252

5353
it('should encode with pipe when plural is custom', () => {
54-
expect(SettingsService.encodeLabelParts('Industry', 'Industries')).toBe('Industry|Industries');
54+
expect(SettingsService.encodeLabelParts('Industry', 'Industries')).toBe(
55+
'Industry|Industries'
56+
);
5557
});
5658

5759
it('should encode without pipe when plural is empty', () => {

src/app/service/settings/settings.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ export class SettingsService {
6666
}
6767
const parts = value.split('|');
6868
const singular = parts[0].trim();
69-
const plural = parts.length > 1 && parts[1].trim().length > 0
70-
? parts[1].trim()
71-
: singular + 's';
69+
const plural =
70+
parts.length > 1 && parts[1].trim().length > 0 ? parts[1].trim() : singular + 's';
7271
return { singular, plural };
7372
}
7473

0 commit comments

Comments
 (0)