Skip to content

Commit

Permalink
Merge pull request #8095 from samuelmbabhazi/feat/#6411
Browse files Browse the repository at this point in the history
replace hardcode platFormSiteUrl in user menu template
  • Loading branch information
rahul-rocket authored Aug 21, 2024
2 parents 5e9cee1 + d3abb0d commit dd78a68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@
<div class="links">
<p
*ngIf="employee$ | async"
[ngClass]="{'disabled-table': (isSubmit$ | async)}"
[ngClass]="{ 'disabled-table': (isSubmit$ | async) }"
class="link"
[innerHTML]="
((employee$ | async)?.isAway
?
'USER_MENU.SET_YOURSELF_AS_ACTIVE'
? 'USER_MENU.SET_YOURSELF_AS_ACTIVE'
: 'USER_MENU.SET_YOURSELF_AS_AWAY'
) | translate
"
Expand All @@ -54,11 +53,7 @@
</p>
</div>
<div class="sub-user-menu">
<gauzy-user
showIdentity="true"
[user$]="user$"
(clicked)="onClick()"
></gauzy-user>
<gauzy-user showIdentity="true" [user$]="user$" (clicked)="onClick()"></gauzy-user>
</div>
</div>

Expand All @@ -67,28 +62,19 @@
<div class="download-apps-content">
<span class="download-apps-label">Download Apps:</span>
<span class="download-apps-icons">
<a
*ngFor="let app of downloadApps"
target="_blank"
[href]="app.link"
rel="noopener"
>
<a *ngFor="let app of downloadApps" target="_blank" [href]="app.link" rel="noopener">
<i [class]="app.icon"></i>
</a>
</span>
</div>
<p>
<a target="_blank" href="https://gauzy.co">{{
'USER_MENU.HELP' | translate
}}</a>
<a target="_blank" href="{{ platFormWebSiteUrl }}">{{ 'USER_MENU.HELP' | translate }}</a>
</p>
<p class="link" underConstruction>
{{ 'USER_MENU.HOTKEYS' | translate }}
</p>
<p>
<ngx-theme-language-selector
class="theme"
></ngx-theme-language-selector>
<ngx-theme-language-selector class="theme"></ngx-theme-language-selector>
</p>
<p>
<gauzy-switch-theme class="theme"></gauzy-switch-theme>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class UserMenuComponent implements OnInit {
private _user$: Observable<IUser>;
private _employee$: BehaviorSubject<IEmployee>;
private _isSubmit$: BehaviorSubject<boolean>;
platFormWebSiteUrl: string;

@Output()
public close: EventEmitter<any> = new EventEmitter<any>(null);
Expand Down Expand Up @@ -52,6 +53,7 @@ export class UserMenuComponent implements OnInit {
this._user$ = new Observable();
this._employee$ = new BehaviorSubject(null);
this._isSubmit$ = new BehaviorSubject(false);
this.platFormWebSiteUrl = environment.PLATFORM_WEBSITE_URL;
}

ngOnInit(): void {
Expand Down

0 comments on commit dd78a68

Please sign in to comment.