web/storagenode: fix bandwidth graph (#5020)
fixes #4951 Co-authored-by: Clement Sam <clementsam75@gmail.com>
This commit is contained in:
parent
c6e48fb71d
commit
7d200d3962
@ -31,6 +31,13 @@ export default class BaseChart extends Vue {
|
|||||||
chartContainer: HTMLElement;
|
chartContainer: HTMLElement;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rebuilds chart after type switch.
|
||||||
|
*/
|
||||||
|
public mounted(): void {
|
||||||
|
this.rebuildChart();
|
||||||
|
}
|
||||||
|
|
||||||
@Watch('width')
|
@Watch('width')
|
||||||
@Watch('isDarkMode')
|
@Watch('isDarkMode')
|
||||||
public rebuildChart(): void {
|
public rebuildChart(): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user