forgot one
This commit is contained in:
parent
746b7fc018
commit
57c28d73bb
2
dist/index.html
vendored
2
dist/index.html
vendored
|
|
@ -97,7 +97,7 @@
|
||||||
<div id="voteResetPanel" class="bg-dark text-light" style="display:none;">
|
<div id="voteResetPanel" class="bg-dark text-light" style="display:none;">
|
||||||
<span id="voteResetText">Do you want to reset the vm?</span><br/>
|
<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/>
|
<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">
|
<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="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>
|
<button class="btn btn-info" id="forceVoteNoBtn"><i class="fa-solid fa-ban"></i><span id="cancelVoteButtonText">Cancel Vote</span></button>
|
||||||
|
|
|
||||||
|
|
@ -61,13 +61,13 @@ const voteyesbtn = document.getElementById("voteYesBtn");
|
||||||
const votenobtn = document.getElementById("voteNoBtn");
|
const votenobtn = document.getElementById("voteNoBtn");
|
||||||
const voteyeslabel = document.getElementById("voteYesLabel");
|
const voteyeslabel = document.getElementById("voteYesLabel");
|
||||||
const votenolabel = document.getElementById("voteNoLabel");
|
const votenolabel = document.getElementById("voteNoLabel");
|
||||||
const votetime = document.getElementById("votetime");
|
|
||||||
const staffbtns = document.getElementById("staffbtns");
|
const staffbtns = document.getElementById("staffbtns");
|
||||||
const qemuMonitorInput = document.getElementById("qemuMonitorInput");
|
const qemuMonitorInput = document.getElementById("qemuMonitorInput");
|
||||||
const qemuMonitorOutput = document.getElementById("qemuMonitorOutput");
|
const qemuMonitorOutput = document.getElementById("qemuMonitorOutput");
|
||||||
const xssCheckbox = document.getElementById("xssCheckbox");
|
const xssCheckbox = document.getElementById("xssCheckbox");
|
||||||
const xssCheckboxContainer = document.getElementById("xssCheckboxContainer");
|
const xssCheckboxContainer = document.getElementById("xssCheckboxContainer");
|
||||||
const forceVotePanel = document.getElementById("forceVotePanel");
|
const forceVotePanel = document.getElementById("forceVotePanel");
|
||||||
|
const voteStatusText = document.getElementById("voteStatusText");
|
||||||
// needed to scroll to bottom
|
// needed to scroll to bottom
|
||||||
const chatListDiv = document.querySelector(".chat-table");
|
const chatListDiv = document.querySelector(".chat-table");
|
||||||
|
|
||||||
|
|
@ -354,7 +354,7 @@ class CollabVMClient {
|
||||||
timeToEnd--;
|
timeToEnd--;
|
||||||
if (timeToEnd === 0)
|
if (timeToEnd === 0)
|
||||||
clearInterval(voteinterval);
|
clearInterval(voteinterval);
|
||||||
votetime.innerText = timeToEnd;
|
voteStatusText.innerText = window.i18n.get("Vote ends in # seconds").replace("#", timeToEnd);
|
||||||
}
|
}
|
||||||
voteinterval = setInterval(updateVote, 1000);
|
voteinterval = setInterval(updateVote, 1000);
|
||||||
updateVote();
|
updateVote();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user