Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
2eb172fd
Commit
2eb172fd
authored
Dec 10, 2019
by
Melvin Luong
Browse files
Fixed plural issue where appName is already a plural.
parent
36ac7133
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/joblist/joblist.component.html
View file @
2eb172fd
...
...
@@ -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>
...
...
src/app/joblist/joblist.component.ts
View file @
2eb172fd
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment