webapp: Parse version string event if update search is not allowed
This commit is contained in:
parent
d3d92e90e0
commit
e8b1e7a71c
@ -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';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user