Browse Source

Add function to toggle charts visibility

pull/241/head
Madis Kariler 4 years ago
committed by GitHub
parent
commit
5afbea80d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/www/js/app.js

5
src/www/js/app.js

@ -48,6 +48,7 @@ new Vue({
currentRelease: null,
latestRelease: null,
chartsVisible: (localStorage.getItem('chartsVisible') ?? 'true') === 'true',
chartOptions: {
chart: {
background: 'transparent',
@ -243,6 +244,10 @@ new Vue({
.catch(err => alert(err.message || err.toString()))
.finally(() => this.refresh().catch(console.error));
},
toggleCharts() {
this.chartsVisible = !this.chartsVisible;
localStorage.setItem('chartsVisible', this.chartsVisible);
},
},
filters: {
bytes,

Loading…
Cancel
Save