fix generator bugs

This commit is contained in:
moehreag 2024-06-17 20:47:11 +02:00
parent fd526f42d6
commit 7059387020
2 changed files with 12 additions and 5 deletions

View file

@ -159,7 +159,7 @@ Insert section about the installer here
let libs = json.libraries
for (let lib of loaderLibs.libraries) {
let value = {
"download": {
"downloads": {
"artifact": {
"url": lib.url,
"size": lib.size,
@ -217,10 +217,10 @@ PR direct support to Prism
<input type="checkbox" v-model="showSnapshots" @change="getVersions">Show Snapshots</input>
</td>
</tr>
<tr>
<!--<tr>
<td></td>
<td></td>
</tr>
</tr>-->
</tbody>
</table>
<div id="missingBox"></div>

View file

@ -104,7 +104,14 @@ outline: false
}).catch((err) => {
document.getElementById("froglibVersionSnapshotBadge").innerHTML = "No version found!"
}),
])
]).then((data) => {
if (latestLoader === undefined ||
latestPhytotelma === undefined ||
latestFrogLib === undefined) {
useSnapshots.value = true
document.getElementById("snapshotCheckbox").setAttribute("disabled", '')
}
})
}
async function fetchVersionFromMaven(repository, name) {
@ -285,7 +292,7 @@ outline: false
<tr>
<td>Library Versions</td>
<td>
<input type="checkbox" v-model="useSnapshots">Use Snapshots (Beta Versions)</input>
<input type="checkbox" v-model="useSnapshots" id="snapshotCheckbox">Use Snapshots (Beta Versions)</input>
</td>
</tr>
</tbody>