File tree Expand file tree Collapse file tree 7 files changed +18
-62
lines changed
Expand file tree Collapse file tree 7 files changed +18
-62
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ The domain of the corresponding backend should be used here.
3131An example value could be: ` catena-x.net `
3232
3333` CATENAX_PORTAL_URL `
34- This variable points to the CX Portal instance
34+ This variable is optional and points to the CX Portal instance
3535
3636# Helm deployment
3737
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ The domain of the corresponding backend should be used here.
312312An example value could be: ` catena-x.net `
313313
314314` CATENAX_PORTAL_URL `
315- This variable points to the CX Portal instance
315+ This variable is optional and points to the CX Portal instance
316316
317317## Deployment
318318
Original file line number Diff line number Diff line change 3232 </ div >
3333
3434 < div class ="header--user ">
35- < app-button variant ="flat " color ="primary " class =" pr-5 " (click) ="openDocumentation() ">
35+ < app-button variant ="flat " color ="primary " (click) ="openDocumentation() ">
3636 < app-text-with-icon iconName ="help "> {{ 'actions.help' | i18n }}</ app-text-with-icon >
3737 </ app-button >
3838
Original file line number Diff line number Diff line change 3030 </ div >
3131 < div
3232 *ngIf ="this.isExpanded "
33- [class.fade-in ] ="isExpanded "
33+ [class.expand ] ="isExpanded "
3434 class ="user-menu-items-container "
3535 role ="menu "
3636 aria-orientation ="vertical "
4545
4646 < mat-divider > </ mat-divider >
4747
48- < div class =" user-menu-items " (click) ="openPortalPage() ">
48+ < div *ngIf =" portalUrl " (click) ="openPortalPage() " class =" user-menu-items ">
4949 < p class ="regular-text user-menu-items__label " role ="menuitem ">
5050 {{ 'layout.nav.goToPortal' | i18n }}
5151 </ p >
6868
6969 < mat-divider > </ mat-divider >
7070
71- < div class ="user-menu-items ">
72- < p class ="regular-text user-menu-items__label ">
71+ < div class ="user-menu-language ">
72+ < p class ="user-menu-language__items ">
7373 < app-language-selector > </ app-language-selector >
7474 </ p >
7575 </ div >
Original file line number Diff line number Diff line change 6969 @apply block px-4 py-2 cursor-pointer focus :outline- none;
7070}
7171
72+ .user-menu-language {
73+ @apply flex items-center space-x-2 p- 1;
74+ }
75+
76+ .user-menu-language__items {
77+ @apply block px-4 py-2 focus :outline- none;
78+ }
79+
7280.user-menu-items__badge {
7381 @apply ml-4 text-dangerLight font-bold ;
7482}
7886 border-radius : 32px ;
7987}
8088
81- .fade-in {
89+ .expand {
8290 opacity : 1 ;
8391}
84- .fade-inn {
85- -webkit-animation : fade- in 0.25s cubic-bezier (0.39 , 0.575 , 0.565 , 1 ) both ;
86- animation : fade- in 0.25s cubic-bezier (0.39 , 0.575 , 0.565 , 1 ) both ;
87- }
88-
89- .fade-out {
90- -webkit-animation : fade- in 0.2s cubic-bezier (1 , 0.565 , 0.575 , 0.39 ) both ;
91- animation : fade- in 0.2s cubic-bezier (1 , 0.565 , 0.575 , 0.39 ) both ;
92- }
93-
94- /* *
95- * ----------------------------------------
96- * animation fade-in
97- * ----------------------------------------
98- */
99- @-webkit-keyframes fade-in {
100- 0% {
101- opacity : 0 ;
102- }
103- 100% {
104- opacity : 1 ;
105- }
106- }
107- @keyframes fade-in {
108- 0% {
109- opacity : 0 ;
110- }
111- 100% {
112- opacity : 1 ;
113- }
114- }
115-
116- /* *
117- * ----------------------------------------
118- * animation fade-in
119- * ----------------------------------------
120- */
121- @-webkit-keyframes fade-out {
122- 100% {
123- opacity : 1 ;
124- }
125- 0% {
126- opacity : 0 ;
127- }
128- }
129- @keyframes fade-out {
130- 100% {
131- opacity : 1 ;
132- }
133- 0% {
134- opacity : 0 ;
135- }
136- }
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export class UserMenuComponent {
3636 public userInitials = '' ;
3737 public userDetails = { name : '' , email : '' , role : '' } ;
3838 public activeItem : string = '' ;
39+ public portalUrl = environment . portalUrl ;
3940
4041 constructor ( private readonly layoutFacade : LayoutFacade , private readonly router : Router ) {
4142 this . userInitials = this . layoutFacade . realName ;
Original file line number Diff line number Diff line change 2323 "nav" : {
2424 "openUserMenu" : " Benutzermenü öffnen" ,
2525 "signOut" : " Abmelden" ,
26- "goToPortal" : " TBD: Go to CX Portal"
26+ "goToPortal" : " Öffne CX Portal"
2727 }
2828 },
2929 "actions" : {
You can’t perform that action at this time.
0 commit comments