forgot one

This commit is contained in:
MDMCK10 2023-06-25 16:07:53 +02:00
parent 746b7fc018
commit 57c28d73bb
2 changed files with 3 additions and 3 deletions

2
dist/index.html vendored
View File

@ -97,7 +97,7 @@
<div id="voteResetPanel" class="bg-dark text-light" style="display:none;">
<span id="voteResetText">Do you want to reset the vm?</span><br/>
<button class="btn btn-success" id="voteYesBtn"><i class="fa-solid fa-check"></i><span id="voteYesText">Yes</span><span class="badge bg-secondary" id="voteYesLabel"></span></button> <button class="btn btn-danger" id="voteNoBtn"><i class="fa-solid fa-ban"></i><span id="voteNoText">No</span><span class="badge bg-secondary" id="voteNoLabel"></span></button><br/>
Vote ends in <span id="votetime"></span> seconds<br/>
<span id="voteStatusText">Vote ends in # seconds<br/></span>
<div id="forceVotePanel">
<button class="btn btn-info" id="forceVoteYesBtn"><i class="fa-solid fa-check"></i><span id="passVoteButtonText">Pass Vote</span></button>
<button class="btn btn-info" id="forceVoteNoBtn"><i class="fa-solid fa-ban"></i><span id="cancelVoteButtonText">Cancel Vote</span></button>

View File

@ -61,13 +61,13 @@ const voteyesbtn = document.getElementById("voteYesBtn");
const votenobtn = document.getElementById("voteNoBtn");
const voteyeslabel = document.getElementById("voteYesLabel");
const votenolabel = document.getElementById("voteNoLabel");
const votetime = document.getElementById("votetime");
const staffbtns = document.getElementById("staffbtns");
const qemuMonitorInput = document.getElementById("qemuMonitorInput");
const qemuMonitorOutput = document.getElementById("qemuMonitorOutput");
const xssCheckbox = document.getElementById("xssCheckbox");
const xssCheckboxContainer = document.getElementById("xssCheckboxContainer");
const forceVotePanel = document.getElementById("forceVotePanel");
const voteStatusText = document.getElementById("voteStatusText");
// needed to scroll to bottom
const chatListDiv = document.querySelector(".chat-table");
@ -354,7 +354,7 @@ class CollabVMClient {
timeToEnd--;
if (timeToEnd === 0)
clearInterval(voteinterval);
votetime.innerText = timeToEnd;
voteStatusText.innerText = window.i18n.get("Vote ends in # seconds").replace("#", timeToEnd);
}
voteinterval = setInterval(updateVote, 1000);
updateVote();