web/storagenode: date and data formating fixed (#3519)
This commit is contained in:
parent
c1ae8c332f
commit
e99af18229
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user