Skip to content

Commit

Permalink
webapp: Parse version string event if update search is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Sep 16, 2024
1 parent d3d92e9 commit e8b1e7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webapp/src/views/SystemInfoView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export default defineComponent({
.then((data) => {
this.systemDataList = data;
this.dataLoading = false;
if (this.allowVersionInfo) {
this.getUpdateInfo();
}
this.getUpdateInfo();
});
},
getUpdateInfo() {
Expand All @@ -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';
Expand Down

0 comments on commit e8b1e7a

Please sign in to comment.