From b6b71daa50cc697bbe8aec43c773147e47c17bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 24 Sep 2022 02:30:19 +0000 Subject: [PATCH] TickerBar self update --- ui/src/App.vue | 23 +--------------------- ui/src/components/TickerBar.vue | 34 +++++++++++++++++++++++++++------ 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index 4e2db3c..2413334 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -26,11 +26,7 @@ /> - + @@ -74,9 +70,6 @@ export default class App extends Vue { private dashboard_version = "0.0.1"; private dashboard_ip = "0.0.0.0"; - private ticker_html = "

changeme

"; - private ticker_color = "primary"; - public created(): void { super.created(); } @@ -164,20 +157,6 @@ export default class App extends Vue { this.$ovdashboard.api_get_string("misc/lanip", (data) => { this.dashboard_ip = data; }); - - // Update Ticker - this.$ovdashboard.api_get_string("ticker/html", (data) => { - this.ticker_html = data; - }); - - // Update Ticker Config - type TickerConfig = { - color: string; - }; - - this.$ovdashboard.api_get_object("ticker/config", (data) => { - this.ticker_color = data.color; - }); } } diff --git a/ui/src/components/TickerBar.vue b/ui/src/components/TickerBar.vue index 6202a0f..0d0e3bb 100644 --- a/ui/src/components/TickerBar.vue +++ b/ui/src/components/TickerBar.vue @@ -1,5 +1,5 @@