diff --git a/src/pages/home/home.ts b/src/pages/home/home.ts index 8fe16f03b5c..8263cf534d3 100644 --- a/src/pages/home/home.ts +++ b/src/pages/home/home.ts @@ -512,7 +512,7 @@ export class HomePage { this.hasOldCoinbaseSession = x.oldLinked; if (this.showCoinbase) this.addCoinbase(); break; - case 'walletConnect': + case 'newWalletConnect': this.showWalletConnect = x.show; break; } diff --git a/src/pages/integrations/wallet-connect/wallet-connect-settings/wallet-connect-settings.ts b/src/pages/integrations/wallet-connect/wallet-connect-settings/wallet-connect-settings.ts index e0416759408..52de3169f65 100644 --- a/src/pages/integrations/wallet-connect/wallet-connect-settings/wallet-connect-settings.ts +++ b/src/pages/integrations/wallet-connect/wallet-connect-settings/wallet-connect-settings.ts @@ -13,7 +13,7 @@ import * as _ from 'lodash'; templateUrl: 'wallet-connect-settings.html' }) export class WalletConnectSettingsPage { - private serviceName: string = 'walletConnect'; + private serviceName: string = 'newWalletConnect'; public showInHome; public service; diff --git a/src/pages/settings/settings.ts b/src/pages/settings/settings.ts index 8e4c0885763..609e1ba7030 100644 --- a/src/pages/settings/settings.ts +++ b/src/pages/settings/settings.ts @@ -388,7 +388,7 @@ export class SettingsPage { case 'giftcards': this.navCtrl.push(GiftCardsSettingsPage); break; - case 'walletConnect': + case 'newWalletConnect': this.navCtrl.push(WalletConnectSettingsPage); break; } diff --git a/src/providers/config/config.ts b/src/providers/config/config.ts index b56c2a87b45..cbb9611f4ba 100644 --- a/src/providers/config/config.ts +++ b/src/providers/config/config.ts @@ -74,6 +74,7 @@ export interface Config { exchangecrypto: boolean; giftcards: boolean; walletConnect: boolean; + newWalletConnect: boolean; }; pushNotifications: { @@ -222,7 +223,8 @@ export class ConfigProvider { buycrypto: true, exchangecrypto: true, giftcards: true, - walletConnect: false + walletConnect: false, + newWalletConnect: false }, pushNotifications: { @@ -385,8 +387,8 @@ export class ConfigProvider { if (this.configCache.showIntegration.coinbase !== false) { this.configCache.showIntegration.coinbase = this.configDefault.showIntegration.coinbase; } - if (this.configCache.showIntegration.walletConnect !== true) { - this.configCache.showIntegration.walletConnect = this.configDefault.showIntegration.walletConnect; + if (this.configCache.showIntegration.newWalletConnect !== true) { + this.configCache.showIntegration.newWalletConnect = this.configDefault.showIntegration.newWalletConnect; } } if (!this.configCache.pushNotifications) { diff --git a/src/providers/home-integrations/home-integrations.ts b/src/providers/home-integrations/home-integrations.ts index 9a874ae99ec..e7eb8d20c58 100644 --- a/src/providers/home-integrations/home-integrations.ts +++ b/src/providers/home-integrations/home-integrations.ts @@ -6,7 +6,7 @@ import * as _ from 'lodash'; const exchangeList: object[] = [ { name: 'coinbase' }, - { name: 'walletConnect' } + { name: 'newWalletConnect' } ]; @Injectable() diff --git a/src/providers/wallet-connect/wallet-connect.ts b/src/providers/wallet-connect/wallet-connect.ts index 3dc7b7d14c9..b25c11ac24c 100644 --- a/src/providers/wallet-connect/wallet-connect.ts +++ b/src/providers/wallet-connect/wallet-connect.ts @@ -93,8 +93,8 @@ export class WalletConnectProvider { public register(): void { this.homeIntegrationsProvider.register({ - name: 'walletConnect', - title: this.translate.instant('WalletConnect'), + name: 'newWalletConnect', + title: 'WalletConnect', icon: 'assets/img/wallet-connect.svg', showIcon: true, logo: null, @@ -102,7 +102,7 @@ export class WalletConnectProvider { background: 'linear-gradient(to bottom,rgba(60, 63, 69, 1) 0,rgba(45, 47, 51, 1) 100%)', page: 'WalletConnectPage', - show: !!this.configProvider.get().showIntegration['walletConnect'], + show: !!this.configProvider.get().showIntegration['newWalletConnect'], type: 'external-services' }); }