Commit 2eb172fd authored by Melvin Luong's avatar Melvin Luong
Browse files

Fixed plural issue where appName is already a plural.

parent 36ac7133
......@@ -6,7 +6,7 @@
<mat-expansion-panel style="width: 100%" [expanded]="true">
<mat-expansion-panel-header>
<mat-panel-title>
<span>RUNNING {{ getAppName() }}S</span>
<span>RUNNING {{ getAppName() }}</span>
</mat-panel-title>
</mat-expansion-panel-header>
<mat-list>
......
......@@ -51,7 +51,13 @@ export class JoblistComponent implements OnInit {
// default name if this function fails to get the app name
let appName = "job";
if (this.appSubject.value.name !== undefined) {
// make appName a plural for display purposes
// if character ends with "s" already a plural
appName = this.appSubject.value.name;
if (appName.substr(appName.length - 1) !== 's') {
appName = appName + 's';
}
}
return appName.toUpperCase();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment