🐛 (moneypad) fix and make the multi currency works!
This commit is contained in:
@@ -17,8 +17,9 @@
|
||||
v-for="(user, k) in account.users"
|
||||
:key="k"
|
||||
:value="user.alias"
|
||||
>{{ user.alias }}</option
|
||||
>
|
||||
{{ user.alias }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,12 +23,13 @@ export const moneypad = (
|
||||
): string => {
|
||||
const m = money(value, currency)
|
||||
const s: string[] = m.split('\xa0')
|
||||
const cur: string | undefined = s.pop()
|
||||
let cur: string | undefined = s.pop()
|
||||
|
||||
if (withPadEnd) {
|
||||
cur = (cur || '').padEnd(3, '\xa0')
|
||||
}
|
||||
|
||||
const result = `${s.join('\xa0')}\xa0${cur || ''}`
|
||||
if (withPadEnd) {
|
||||
return result.padEnd(3, '\xa0')
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
@@ -85,15 +85,6 @@
|
||||
<awe-icon icon="balance-scale" />
|
||||
</a>
|
||||
</li>
|
||||
<li v-if="isMultiUser">
|
||||
<a
|
||||
:style="colorStyle(activeTab === 'refund')"
|
||||
href="#"
|
||||
@click.prevent="toggleTab('refund')"
|
||||
>
|
||||
<awe-icon icon="exchange-alt" />
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div
|
||||
@@ -130,12 +121,6 @@
|
||||
:stats="userStats"
|
||||
:currency="account.mainCurrency"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
key="refund"
|
||||
class="refund-panel tab-content is-centered"
|
||||
v-if="activeTab === 'refund'"
|
||||
>
|
||||
<div
|
||||
v-if="userRefunds.length"
|
||||
class="refund-container no-margin columns is-centered is-multiline"
|
||||
|
||||
Reference in New Issue
Block a user