web/storagenode: date and data formating fixed (#3519)

This commit is contained in:
Vitalii Shpital 2019-11-12 14:04:54 +02:00 committed by GitHub
parent c1ae8c332f
commit e99af18229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -41,7 +41,7 @@ class BandwidthTooltip {
this.repairIngress = formatBytes(bandwidth.ingress.repair);
this.repairEgress = formatBytes(bandwidth.egress.repair);
this.auditEgress = formatBytes(bandwidth.egress.audit);
this.date = bandwidth.intervalStart.toUTCString();
this.date = bandwidth.intervalStart.toUTCString().slice(0, 16);
}
}
@ -59,8 +59,8 @@ export default class BandwidthChart extends Vue {
}
public get chartDataDimension(): string {
if (!this.allBandwidth.length) {
return '';
if (!this.$store.state.node.bandwidthChartData.length) {
return 'Bytes';
}
return ChartUtils.getChartDataDimension(this.allBandwidth.map((elem) => {
@ -156,7 +156,7 @@ export default class BandwidthChart extends Vue {
&__data-dimension {
font-size: 13px;
color: #586c86;
margin: 0 0 5px 30px;
margin: 0 0 5px 31px;
font-family: 'font_medium', sans-serif;
}
}

View File

@ -33,7 +33,7 @@ class StampTooltip {
public constructor(stamp: Stamp) {
this.atRestTotal = formatBytes(stamp.atRestTotal);
this.date = stamp.intervalStart.toUTCString();
this.date = stamp.intervalStart.toUTCString().slice(0, 16);
}
}
@ -52,8 +52,8 @@ export default class DiskSpaceChart extends Vue {
}
public get chartDataDimension(): string {
if (!this.allStamps.length) {
return '';
if (!this.$store.state.node.storageChartData.length) {
return 'Bytes';
}
return ChartUtils.getChartDataDimension(this.allStamps.map((elem) => {
@ -128,7 +128,7 @@ export default class DiskSpaceChart extends Vue {
&__data-dimension {
font-size: 13px;
color: #586c86;
margin: 0 0 5px 30px;
margin: 0 0 5px 31px;
font-family: 'font_medium', sans-serif;
}
}