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

View file

@ -104,7 +104,14 @@ outline: false
}).catch((err) => { }).catch((err) => {
document.getElementById("froglibVersionSnapshotBadge").innerHTML = "No version found!" 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) { async function fetchVersionFromMaven(repository, name) {
@ -285,7 +292,7 @@ outline: false
<tr> <tr>
<td>Library Versions</td> <td>Library Versions</td>
<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> </td>
</tr> </tr>
</tbody> </tbody>