Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
strudelv2_spa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
strudelv2_spa
Commits
e684381d
Commit
e684381d
authored
5 years ago
by
Melvin Luong
Browse files
Options
Downloads
Patches
Plain Diff
Updated header/banner profile icon to include the user's username if user has logged in.
parent
514748e6
No related branches found
Branches containing commit
No related tags found
3 merge requests
!28
Dev
,
!22
Master
,
!21
New css dev
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app/app.component.css
+4
-1
4 additions, 1 deletion
src/app/app.component.css
src/app/app.component.html
+3
-3
3 additions, 3 deletions
src/app/app.component.html
src/app/app.component.ts
+8
-0
8 additions, 0 deletions
src/app/app.component.ts
with
15 additions
and
4 deletions
src/app/app.component.css
+
4
−
1
View file @
e684381d
...
...
@@ -26,4 +26,7 @@
color
:
#f0f0f0
;
font-size
:
smaller
;
}
\ No newline at end of file
.profile-button
{
padding
:
30px
0px
0px
0px
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/app/app.component.html
+
3
−
3
View file @
e684381d
...
...
@@ -15,10 +15,10 @@
<span
class=
"banner"
>
STRUDEL
</span>
<span
fxFlex
></span>
<span
class=
"fill-horizontal-space"
></span>
<button
mat-icon-button
[matMenuTriggerFor]=
"actionmenu"
>
<mat-icon>
person
</mat-icon>
<button
mat-button
[matMenuTriggerFor]=
"actionmenu"
disableRipple=
"true"
class=
"profile-button"
>
{{ displayUsername() }}
<mat-icon>
expand_more
</mat-icon>
</button>
<mat-menu
#actionmenu
="
matMenu
"
>
<div
*ngFor=
"let az of (authService.loggedInAuthZ | async)"
>
<button
mat-menu-item
routerLink=
"/logout"
><mat-icon>
logout
</mat-icon>
Log out of {{ az.name }}
</button>
...
...
This diff is collapsed.
Click to expand it.
src/app/app.component.ts
+
8
−
0
View file @
e684381d
...
...
@@ -107,6 +107,14 @@ export class AppComponent {
return
count
;
}
displayUsername
()
{
let
ids
=
this
.
computeSitesService
.
appidentities
.
value
;
if
(
Array
.
isArray
(
ids
)
&&
ids
.
length
)
{
return
ids
[
0
].
username
;
}
}
// login() {
// console.log("login");
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment