Skip to content

Commit

Permalink
correction for token info screen in the header navigation && add the …
Browse files Browse the repository at this point in the history
…translate option
  • Loading branch information
hichri-louay committed Nov 17, 2023
1 parent 2f93e63 commit 90d236e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/layout/components/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@
>
</li>
<li class="li-menu" [ngClass]="{ 'is-visited': menuTokenInfo }" id="intro7">
<a style="cursor: pointer" (click)="openTokenInfoInNewTab()"
>Token Info</a
<a style="cursor: pointer" [routerLink]="['/wallet/token-info']" (click)="checkMenuTokenInfo()"
>{{ 'token_info' | translate }}</a
>
</li>
<li class="li-menu" [ngClass]="{ 'is-visited': menuHelp }" id="intro5">
Expand Down
14 changes: 11 additions & 3 deletions src/app/layout/components/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1493,10 +1493,18 @@ export class HeaderComponent implements OnInit, OnDestroy, AfterViewInit {
this.menuAbout = false;
this.menuBlog = false;
}
openTokenInfoInNewTab() {
if (isPlatformBrowser(this.platformId))
window.open( environment.domainName + '/wallet/token-info', '_self');
checkMenuTokenInfo() {
this.menuWallet = false;
this.menuAdpool = false;
this.menuFarmPost = false;
this.menuHistory = false;
this.menuHelp = false;
this.menuBuyToken = false;
this.menuTokenInfo = true;
this.menuAbout = false;
this.menuBlog = false;
}

checkMenuAbout() {
this.titleService.setTitle('SaTT - Smart advertising Transaction Token');
if (isPlatformBrowser(this.platformId))
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@
"Our_tools": "Our tools",
"appliedOn": "APPLIED ON ",
"Satt_wallet": "Satt wallet",
"token_info":"Token Info",
"Our_Dex": "Our Dex, 3xchange.io",
"don't_show_again": "Mute future reminders",
"Your_earnings": "Your earnings",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,7 @@
"allCountries": "Tous les pays",
"selectAll": "Sélectionner tout",
"unSelectAll": "Désélectionner tout",
"token_info":"Informations sur le jeton",
"search": "Recherche",
"appliedOn": "POSTULÉ(E) LE ",
"at": " à ",
Expand Down

0 comments on commit 90d236e

Please sign in to comment.