From d1c73851bb35e9054ae6ea78c93c7957ce300c6f Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Thu, 25 Jan 2024 00:18:44 +0800 Subject: [PATCH] hide action buttons if using plugin --- src/containers/Popup/PopupWidget/PopupWidget.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/containers/Popup/PopupWidget/PopupWidget.vue b/src/containers/Popup/PopupWidget/PopupWidget.vue index 340948a96..db2ba51e1 100644 --- a/src/containers/Popup/PopupWidget/PopupWidget.vue +++ b/src/containers/Popup/PopupWidget/PopupWidget.vue @@ -52,6 +52,7 @@ fab title="Open Transfer Page" aria-label="Open Transfer Page" + :disabled="isPlugin()" @click="showWalletPopup({ path: '/transfer' })" > $vuetify.icons.send @@ -64,7 +65,8 @@ small class="ml-2 torus-btn1 torusBrand1--text" title="Open Topup Page" - aria-label="Open Topupu Page" + aria-label="Open Topup Page" + :disabled="isPlugin()" @click="showWalletPopup({ path: '/topup' })" > $vuetify.icons.add @@ -76,7 +78,7 @@ {{ networkType.networkName || networkType.host }}
-
+
{{ t('dappPopup.recentActivity') }} {{ t('dappPopup.openWallet') }} @@ -322,6 +324,9 @@ export default { toggleWidgetVisibility: 'toggleWidgetVisibility', showWalletPopup: 'showWalletPopup', }), + isPlugin() { + return config.isPlugin + }, login() { this.$emit('onLogin') },