|
|
|
@ -142,7 +142,6 @@ |
|
|
|
<body> |
|
|
|
<div class="tab"> |
|
|
|
<button class="tablinks active" onclick="openTab(event, 'Advanced')">Advanced</button> |
|
|
|
<button class="tablinks" onclick="openTab(event, 'Mounts')">Mounts</button> |
|
|
|
<button class="tablinks" onclick="openTab(event, 'Branches')">Branches</button> |
|
|
|
</div> |
|
|
|
<div id="Advanced" class="tabcontent" style="display: block;"> |
|
|
|
@ -152,12 +151,6 @@ |
|
|
|
</div> |
|
|
|
<div id="kv-list"></div> |
|
|
|
</div> |
|
|
|
<div id="Mounts" class="tabcontent"> |
|
|
|
<form> |
|
|
|
<label for="mount-select">Select Mountpoint:</label> |
|
|
|
<select id="mount-select"></select> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
<div id="Branches" class="tabcontent"> |
|
|
|
<div> |
|
|
|
<label for="mount-select-branches">Select Mountpoint:</label> |
|
|
|
@ -257,10 +250,9 @@ |
|
|
|
fetch('/mounts') |
|
|
|
.then(r => r.json()) |
|
|
|
.then(data => { |
|
|
|
const select = document.getElementById('mount-select'); |
|
|
|
const selectAdvanced = document.getElementById('mount-select-advanced'); |
|
|
|
const selectBranches = document.getElementById('mount-select-branches'); |
|
|
|
[select, selectAdvanced, selectBranches].forEach(s => { |
|
|
|
[selectAdvanced, selectBranches].forEach(s => { |
|
|
|
s.innerHTML = ''; |
|
|
|
data.forEach(m => { |
|
|
|
const opt = document.createElement('option'); |
|
|
|
@ -277,11 +269,9 @@ |
|
|
|
const mount = this.value; |
|
|
|
loadBranches(mount); |
|
|
|
}; |
|
|
|
select.onchange = onchangeFunc; |
|
|
|
selectAdvanced.onchange = onchangeFunc; |
|
|
|
selectBranches.onchange = onchangeBranchesFunc; |
|
|
|
if (data.length > 0) { |
|
|
|
select.value = data[0]; |
|
|
|
selectAdvanced.value = data[0]; |
|
|
|
selectBranches.value = data[0]; |
|
|
|
loadKV(data[0]); |
|
|
|
|