From e8b1e7a71c0343758bef996eb695ad313fa6b081 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 16 Sep 2024 19:30:45 +0200 Subject: [PATCH] webapp: Parse version string event if update search is not allowed --- webapp/src/views/SystemInfoView.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/src/views/SystemInfoView.vue b/webapp/src/views/SystemInfoView.vue index adb78929..0c3f01a1 100644 --- a/webapp/src/views/SystemInfoView.vue +++ b/webapp/src/views/SystemInfoView.vue @@ -52,9 +52,7 @@ export default defineComponent({ .then((data) => { this.systemDataList = data; this.dataLoading = false; - if (this.allowVersionInfo) { - this.getUpdateInfo(); - } + this.getUpdateInfo(); }); }, getUpdateInfo() { @@ -76,6 +74,10 @@ export default defineComponent({ this.systemDataList.git_is_hash = true; } + if (!this.allowVersionInfo) { + return; + } + const fetchUrl = 'https://api.github.com/repos/tbnobody/OpenDTU/compare/' + this.systemDataList.git_hash + '...HEAD';