Skip to content

Commit

Permalink
hide action buttons if using plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jan 24, 2024
1 parent 10061f0 commit d1c7385
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/containers/Popup/PopupWidget/PopupWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
fab
title="Open Transfer Page"
aria-label="Open Transfer Page"
:disabled="isPlugin()"
@click="showWalletPopup({ path: '/transfer' })"
>
<v-icon size="20">$vuetify.icons.send</v-icon>
Expand All @@ -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' })"
>
<v-icon>$vuetify.icons.add</v-icon>
Expand All @@ -76,7 +78,7 @@
<span class="network-name ml-1">{{ networkType.networkName || networkType.host }}</span>
</div>
<div class="torus-widget__transaction-details mt-5">
<div class="d-flex">
<div v-if="!isPlugin()" class="d-flex">
<span class="caption text_2--text">{{ t('dappPopup.recentActivity') }}</span>
<span class="caption primary--text ml-auto wallet-open" @click="showWalletPopup({ path: '/home' })">
{{ t('dappPopup.openWallet') }}
Expand Down Expand Up @@ -322,6 +324,9 @@ export default {
toggleWidgetVisibility: 'toggleWidgetVisibility',
showWalletPopup: 'showWalletPopup',
}),
isPlugin() {
return config.isPlugin
},
login() {
this.$emit('onLogin')
},
Expand Down

0 comments on commit d1c7385

Please sign in to comment.