Browse Source
Add function to toggle charts visibility
pull/241/head
Madis Kariler
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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, |
|
|
|
|