From 90d236e5cd34e76469078ae31721c9f4a2014f83 Mon Sep 17 00:00:00 2001 From: hichri-louay Date: Fri, 17 Nov 2023 18:51:11 +0100 Subject: [PATCH] correction for token info screen in the header navigation && add the translate option --- .../layout/components/header/header.component.html | 4 ++-- .../layout/components/header/header.component.ts | 14 +++++++++++--- src/assets/i18n/en.json | 1 + src/assets/i18n/fr.json | 1 + 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/app/layout/components/header/header.component.html b/src/app/layout/components/header/header.component.html index 53164db5..e842df39 100755 --- a/src/app/layout/components/header/header.component.html +++ b/src/app/layout/components/header/header.component.html @@ -265,8 +265,8 @@ >
  • - Token Info{{ 'token_info' | translate }}
  • diff --git a/src/app/layout/components/header/header.component.ts b/src/app/layout/components/header/header.component.ts index 0af15e15..9b23061c 100755 --- a/src/app/layout/components/header/header.component.ts +++ b/src/app/layout/components/header/header.component.ts @@ -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)) diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 39e22637..27aa0f24 100755 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -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", diff --git a/src/assets/i18n/fr.json b/src/assets/i18n/fr.json index b7f2561c..4cf50e94 100755 --- a/src/assets/i18n/fr.json +++ b/src/assets/i18n/fr.json @@ -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": " à ",