mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
* Formatted stats * small changes * Fixed issues as per comments
This commit is contained in:
committed by
Matteo Pagliazzi
parent
8be29e27d0
commit
e43749bed1
@@ -224,7 +224,7 @@ div
|
||||
span.hint(:popover-title='$t(statInfo.title)', popover-placement='right',
|
||||
:popover='$t(statInfo.popover)', popover-trigger='mouseenter')
|
||||
.stat-title(:class='stat') {{ $t(statInfo.title) }}
|
||||
strong.number {{ statsComputed[stat] }}
|
||||
strong.number {{ statsComputed[stat] | floorWholeNumber }}
|
||||
.col-12.col-md-6
|
||||
ul.bonus-stats
|
||||
li
|
||||
|
||||
3
website/client/filters/floorWholeNumber.js
Normal file
3
website/client/filters/floorWholeNumber.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function floorWholeNumber (val) {
|
||||
return Math.floor(val);
|
||||
}
|
||||
@@ -2,7 +2,9 @@ import Vue from 'vue';
|
||||
import round from './round';
|
||||
import floor from './floor';
|
||||
import roundBigNumber from './roundBigNumber';
|
||||
import floorWholeNumber from './floorWholeNumber';
|
||||
|
||||
Vue.filter('round', round);
|
||||
Vue.filter('floor', floor);
|
||||
Vue.filter('roundBigNumber', roundBigNumber);
|
||||
Vue.filter('floorWholeNumber', floorWholeNumber);
|
||||
Reference in New Issue
Block a user