diff --git a/src/components/AccountCard.vue b/src/components/AccountCard.vue index f42d21b2..4197d445 100644 --- a/src/components/AccountCard.vue +++ b/src/components/AccountCard.vue @@ -44,6 +44,7 @@ export default defineComponent({ const createTransaction = ref(''); const creatingAccount = ref(''); const system_account = ref('eosio'); + const system_null = ref('eosio.null'); const isLoading = ref(true); const tokensLoading = ref(true); @@ -177,7 +178,7 @@ export default defineComponent({ const loadResources = () => { let ramDenominator; - if (props.account !== system_account.value) { + if (props.account !== system_account.value && props.account !== system_null.value) { // display max resource unit value for readability const ramMaxNumber = Number(accountData.value.ram_quota); const ramUnitResult = determineUnit(ramMaxNumber); @@ -444,6 +445,7 @@ export default defineComponent({ rexDeposits, none, system_account, + system_null, radius, availableTokens, createTime, @@ -517,7 +519,7 @@ export default defineComponent({ -
+
import { defineComponent, ref, watch, onMounted } from 'vue'; -import { OptionsObj } from 'src/types'; +import { OptionsObj, TableByScope } from 'src/types'; import { api } from 'src/api'; import { useQuasar } from 'quasar'; @@ -90,6 +90,15 @@ export default defineComponent({ }; const accounts = await api.getTableByScope(request); + // because the get table by scope for userres does not include eosio system or null accounts + if (value.includes('eosio')) { + accounts.push(...[{ + payer: 'eosio', + } as TableByScope, { + payer: 'eosio.null', + } as TableByScope]); + } + if (accounts.length > 0) { results.push({ label: 'Accounts', @@ -97,15 +106,6 @@ export default defineComponent({ isHeader: true, }); - // because the get table by scope for userres does not include eosio account - if ('eosio'.includes(value)) { - results.push({ - label: 'eosio', - to: 'eosio', - isHeader: false, - }); - } - accounts.forEach((user) => { if (user.payer.includes(value)) { results.push({ diff --git a/src/components/HeaderSearch.vue b/src/components/HeaderSearch.vue index fda8e414..7d886a6e 100644 --- a/src/components/HeaderSearch.vue +++ b/src/components/HeaderSearch.vue @@ -1,7 +1,7 @@