diff --git a/webui/src/App.vue b/webui/src/App.vue index 9ad812eb8..11a521bd6 100644 --- a/webui/src/App.vue +++ b/webui/src/App.vue @@ -15,6 +15,13 @@ export default { // debug console.log('Quasar -> ', this.$q.version) + + this.$q.dark.set(localStorage.getItem('traefik-dark') === 'true') + }, + watch: { + '$q.dark.isActive' (val) { + localStorage.setItem('traefik-dark', val) + } } } diff --git a/webui/src/assets/middlewares-empty-dark.svg b/webui/src/assets/middlewares-empty-dark.svg new file mode 100644 index 000000000..05381932f --- /dev/null +++ b/webui/src/assets/middlewares-empty-dark.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/webui/src/components/_commons/ChartDoughnut.vue b/webui/src/components/_commons/ChartDoughnut.vue index 24b8f1f60..a8993154e 100644 --- a/webui/src/components/_commons/ChartDoughnut.vue +++ b/webui/src/components/_commons/ChartDoughnut.vue @@ -22,6 +22,9 @@ export default { // this.$data._chart.update() this.renderChart(this.chartdata, this.options) } + }, + '$q.dark.isActive' (val) { + this.renderChart(this.chartdata, this.options) } }, mounted () { diff --git a/webui/src/components/_commons/NavBar.vue b/webui/src/components/_commons/NavBar.vue index 8a474cc6d..3bf4c7b3b 100644 --- a/webui/src/components/_commons/NavBar.vue +++ b/webui/src/components/_commons/NavBar.vue @@ -13,13 +13,14 @@ + -
+