feat: Suffixed Decimals

This commit is contained in:
John McCardle 2022-01-13 20:28:19 -05:00 committed by pskfyi
commit 490b99503c
2 changed files with 55 additions and 2 deletions

View file

@ -68,10 +68,12 @@ export default {
cappedValueText() {
return this.unit === 'maxAge'
? this.$store.getters.ageText
: this.cappedValue
: this.$store.getters.suffixedDecimalText(this.cappedValue)
},
maxText() {
return this.unit === 'maxAge' ? this.$store.getters.ageMaxText : this.max
return this.unit === 'maxAge'
? this.$store.getters.ageMaxText
: this.$store.getters.suffixedDecimalText(this.max)
},
clickable() {
return !this.disabled && this.value >= this.max