From ec066f78e1424a01525eca69a03e245255cdf3de Mon Sep 17 00:00:00 2001 From: Ezra Sowden-Guzman Date: Mon, 15 Jan 2024 16:09:34 -0500 Subject: [PATCH] keep aside when empty --- src/components/evm/CollapsibleAside.vue | 9 +++++++ src/pages/evm/allowances/AllowancesPage.vue | 29 +++++++++++---------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/components/evm/CollapsibleAside.vue b/src/components/evm/CollapsibleAside.vue index d7aa80fcc..e17051500 100644 --- a/src/components/evm/CollapsibleAside.vue +++ b/src/components/evm/CollapsibleAside.vue @@ -5,6 +5,7 @@ const props = defineProps<{ header: string; content: { text: string; bold?: boolean; }[]; alwaysOpen?: boolean, // if true, the expansion item will always be open with no toggle + centerOnDesktop?: boolean, // if true, the aside will be centered on large screens (default is off to the side) }>(); // data @@ -25,6 +26,7 @@ function handleExpansionItemUpdate() { :class="{ 'c-collapsible-aside': true, 'c-collapsible-aside--always-open': alwaysOpen, + 'c-collapsible-aside--centered': centerOnDesktop, }" > useAccountStore().currentAccount.account); +const showEmptyState = computed(() => !loading.value && shapedAllowanceRows.value.length === 0); const shapedAllowanceRows = computed(() => { const { asset, @@ -253,20 +254,20 @@ function handleRevokeSelectedClicked() {
- +
-
+

{{ $t('evm_allowances.no_allowances') }}