Spaces:
Sleeping
Sleeping
Update dist/index.html
Browse files- dist/index.html +2 -2
dist/index.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
<body>
|
| 31 |
<div id="sidebar">
|
| 32 |
<label for="release-select">Select Release:</label>
|
| 33 |
-
<select id="release-select" onchange="
|
| 34 |
<option value="Rel-18">Rel-18</option>
|
| 35 |
<option value="Rel-17">Rel-17</option>
|
| 36 |
<option value="Rel-16">Rel-16</option>
|
|
@@ -59,12 +59,12 @@
|
|
| 59 |
let release = 'Rel-18';
|
| 60 |
let currentFile = 'TS29518_Namf_Communication.yaml';
|
| 61 |
function updateRelease(updatedFile) {
|
| 62 |
-
console.log('Click: ', updatedFile);
|
| 63 |
const selectElement = document.getElementById('release-select');
|
| 64 |
release = selectElement.value;
|
| 65 |
loadSwagger(release, updatedFile); // Load the corresponding file for the selected release
|
| 66 |
}
|
| 67 |
function loadSwagger(release, updatedFile) {
|
|
|
|
| 68 |
currentFile = updatedFile;
|
| 69 |
window.ui = SwaggerUIBundle({
|
| 70 |
url: release + '/' + updatedFile,
|
|
|
|
| 30 |
<body>
|
| 31 |
<div id="sidebar">
|
| 32 |
<label for="release-select">Select Release:</label>
|
| 33 |
+
<select id="release-select" onchange="loadSwagger(this.value, currentFile)">
|
| 34 |
<option value="Rel-18">Rel-18</option>
|
| 35 |
<option value="Rel-17">Rel-17</option>
|
| 36 |
<option value="Rel-16">Rel-16</option>
|
|
|
|
| 59 |
let release = 'Rel-18';
|
| 60 |
let currentFile = 'TS29518_Namf_Communication.yaml';
|
| 61 |
function updateRelease(updatedFile) {
|
|
|
|
| 62 |
const selectElement = document.getElementById('release-select');
|
| 63 |
release = selectElement.value;
|
| 64 |
loadSwagger(release, updatedFile); // Load the corresponding file for the selected release
|
| 65 |
}
|
| 66 |
function loadSwagger(release, updatedFile) {
|
| 67 |
+
console.log('Load: ', release, updatedFile);
|
| 68 |
currentFile = updatedFile;
|
| 69 |
window.ui = SwaggerUIBundle({
|
| 70 |
url: release + '/' + updatedFile,
|