Sessions UI: show decimal in scale for low money values (#23202)
This commit is contained in:
parent
e5c1b691ce
commit
f775e9d7a4
1 changed files with 8 additions and 4 deletions
|
|
@ -325,10 +325,14 @@ export default defineComponent({
|
|||
color: colors.muted,
|
||||
},
|
||||
ticks: {
|
||||
callback: (value: number) =>
|
||||
this.costType === TYPES.PRICE
|
||||
? this.fmtMoney(value, this.currency, false, true)
|
||||
: this.fmtNumber(value / 1e3, 0),
|
||||
callback: (value: number) => {
|
||||
if (this.costType === TYPES.PRICE) {
|
||||
const showDecimals = this.suggestedMaxCost < 4;
|
||||
return this.fmtMoney(value, this.currency, showDecimals, true);
|
||||
} else {
|
||||
return this.fmtNumber(value / 1e3, 0);
|
||||
}
|
||||
},
|
||||
color: colors.muted,
|
||||
maxTicksLimit: 6,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue