webapp: Parse version string event if update search is not allowed

This commit is contained in:
Thomas Basler 2024-09-16 19:30:45 +02:00
parent d3d92e90e0
commit e8b1e7a71c

View File

@ -52,9 +52,7 @@ export default defineComponent({
.then((data) => {
this.systemDataList = data;
this.dataLoading = false;
if (this.allowVersionInfo) {
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';