mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 18:33:07 +02:00
✌️
This commit is contained in:
parent
990a583e5e
commit
65549d06d9
1 changed files with 2 additions and 2 deletions
|
@ -394,7 +394,7 @@ export default Vue.extend({
|
||||||
yAxes: [{
|
yAxes: [{
|
||||||
ticks: {
|
ticks: {
|
||||||
callback: value => {
|
callback: value => {
|
||||||
return Vue.filter('bytes')(value);
|
return Vue.filter('bytes')(value, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
@ -403,7 +403,7 @@ export default Vue.extend({
|
||||||
callbacks: {
|
callbacks: {
|
||||||
label: (tooltipItem, data) => {
|
label: (tooltipItem, data) => {
|
||||||
const label = data.datasets[tooltipItem.datasetIndex].label || '';
|
const label = data.datasets[tooltipItem.datasetIndex].label || '';
|
||||||
return `${label}: ${Vue.filter('bytes')(tooltipItem.yLabel)}`;
|
return `${label}: ${Vue.filter('bytes')(tooltipItem.yLabel, 1)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue