diff --git a/scripts/dashboard/Dashboard.vue b/scripts/dashboard/Dashboard.vue index 4569831e9..edac7d692 100644 --- a/scripts/dashboard/Dashboard.vue +++ b/scripts/dashboard/Dashboard.vue @@ -16,7 +16,7 @@ import { } from '../misc.js'; import { ALERTS, translation, tr } from '../i18n.js'; import { HardwareWalletMasterKey, HdMasterKey } from '../masterkey'; -import { COIN } from '../chain_params'; +import { COIN, cChainParams } from '../chain_params'; import { onMounted, ref, watch, computed } from 'vue'; import { getEventEmitter } from '../event_bus'; import { Database } from '../database'; @@ -791,7 +791,13 @@ defineExpose({ " class="text-center" > - Amount + + {{ + cChainParams + .current + .TICKER + }} + + > + + 10 - ? cCode.code.slice(0, 7) + '...' + cCode.code.length > MAX_CODE_RENDER_LENGTH + ? cCode.code.slice(0, MAX_CODE_RENDER_LENGTH - 1) + '…' : cCode.code; // Status calculation (defaults to 'fNew' condition) @@ -421,11 +429,7 @@ export async function renderSavedPromos() { )}" style="display: inline !important; color: #e83e8c;">${sanitizeHTML( trimmedCode )} - ${ - fNew || !cCode.fSynced - ? '...' - : nBal + ' ' + cChainParams.current.TICKER - } + ${fNew || !cCode.fSynced ? '...' : nBal} ${ fCannotDelete @@ -542,8 +546,8 @@ export async function updatePromoCreationTick(fRecursive = false) { // Trimmed code const trimmedCode = - cThread.code.length > 10 - ? cThread.code.slice(0, 7) + '...' + cThread.code.length > MAX_CODE_RENDER_LENGTH + ? cThread.code.slice(0, MAX_CODE_RENDER_LENGTH - 1) + '…' : cThread.code; // Render the table row @@ -551,7 +555,7 @@ export async function updatePromoCreationTick(fRecursive = false) { ` ${trimmedCode} - ${cThread.amount} ${cChainParams.current.TICKER} + ${cThread.amount} ${strState}