Skip to content

Commit

Permalink
fix: Fix display of Space Wallet Creation for to non managers - MEED-…
Browse files Browse the repository at this point in the history
…3059 - Meeds-io/meeds#1418 (#474)

Prior to this change, even if a space member can't create a space
wallet, he still get a form displayed when accessing a space wallet that
wasn't created by Space managers yet. This change will allow to display
an information to space members visiting 'Wallet' menu entry of a space
with a non-existing wallet.
  • Loading branch information
boubaker authored and rdenarie committed Dec 8, 2023
1 parent 64905be commit e555f0f
Showing 1 changed file with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,26 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<div v-if="displayWalletNotExistingYet" class="alert alert-info">
<i class="uiIconInfo"></i> {{ $t('exoplatform.wallet.info.spaceWalletNotCreatedYet') }}
</div>
<wallet-welcome-screen
v-if="displayWelcomeScreen && !displayWalletBrowserSetup && !isSpace && metamaskFeatureEnabled"
@create-internal-wallet="displayWalletBrowserSetup = true"
@configured="refresh()" />
<wallet-reward-browser-setup
v-if="displayWalletBrowserSetup || isSpace || !metamaskFeatureEnabled"
ref="walletBrowserSetup"
:is-space="isSpace"
:is-space-administrator="isSpaceAdministrator"
:wallet="wallet"
:refresh-index="refreshIndex"
:is-administration="isAdministration"
:loading="loading"
:initialization-state="initializationState"
@configured="refresh()"
@loading="$emit('loading')"
@end-loading="$emit('end-loading')"
@error="$emit('error', $event)" />
<template v-else>
<wallet-welcome-screen
v-if="displayWelcomeScreen && !displayWalletBrowserSetup && !isSpace && metamaskFeatureEnabled"
@create-internal-wallet="displayWalletBrowserSetup = true"
@configured="refresh()" />
<wallet-reward-browser-setup
v-if="displayWalletBrowserSetup || isSpace || !metamaskFeatureEnabled"
ref="walletBrowserSetup"
:is-space="isSpace"
:is-space-administrator="isSpaceAdministrator"
:wallet="wallet"
:refresh-index="refreshIndex"
:is-administration="isAdministration"
:loading="loading"
:initialization-state="initializationState"
@configured="refresh()"
@loading="$emit('loading')"
@end-loading="$emit('end-loading')"
@error="$emit('error', $event)" />
</template>
</v-flex>
</template>

Expand Down

0 comments on commit e555f0f

Please sign in to comment.