Changed checkboxvalues and added more error catching

This commit is contained in:
2025-12-09 14:38:26 +01:00
parent 5e6b700c36
commit f817d4c29e
3 changed files with 38 additions and 10 deletions
+4 -4
View File
@@ -68,19 +68,19 @@
<label id="checkbox_group" for="checkbox-group">Choose prefered document style:</label> <label id="checkbox_group" for="checkbox-group">Choose prefered document style:</label>
<div class="checkbox-container"> <div class="checkbox-container">
<input type="checkbox" name ="docFormat" id="docFormat" value="Meeting report"> <input type="checkbox" name ="docFormat" id="docFormat" value="Meeting report">
<label id="label_format" for="docFormat">Meeting report</label> <label id="label_format" for="docFormat">Follow-up Report</label>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input type="checkbox" name="docFormat" id="docFormatSummary1" value="Summary with timestamps"> <input type="checkbox" name="docFormat" id="docFormatSummary1" value="Summary with timestamps">
<label id="label_summary" for="docFormatSummary">Summary with timestamps</label> <label id="label_summary" for="docFormatSummary">Agenda</label>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input type="checkbox" name="docFormat" id="docFormatSummary2" value="Summary with timestamps"> <input type="checkbox" name="docFormat" id="docFormatSummary2" value="Summary with timestamps">
<label id="label_summary" for="docFormatSummary">Summary with timestamps</label> <label id="label_summary" for="docFormatSummary">Resultprotocol</label>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input type="checkbox" name="docFormat" id="docFormatSummary3" value="Summary with timestamps"> <input type="checkbox" name="docFormat" id="docFormatSummary3" value="Summary with timestamps">
<label id="label_summary" for="docFormatSummary">Summary with timestamps</label> <label id="label_summary" for="docFormatSummary">Sprint Planning Note</label>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input type="checkbox" name="docFormat" id="docFormatCustom" value="Summary with timestamps"> <input type="checkbox" name="docFormat" id="docFormatCustom" value="Summary with timestamps">
+13 -1
View File
@@ -18,7 +18,19 @@ try {
ipcRenderer.on("progress", (event, resp) => { ipcRenderer.on("progress", (event, resp) => {
alert(`Finished step ${resp.curstep} of ${resp.totalsteps}`) try{
if(resp.curstep == 1){
setCircleOne();
}else if(resp.curstep == 2){
setCircleZwo();
}else if(resp.curstep == 3){
setCircleThree();
}else if(resp.curstep == 4){
setCircleFour();
}
}catch(error){
}
}) })
ipcRenderer.on("error", (event, err) => {alert(err)}) ipcRenderer.on("error", (event, err) => {alert(err)})
+21 -5
View File
@@ -92,20 +92,36 @@ manualUploadBtn.addEventListener('click', () => {
stepButtons.forEach(btn => { stepButtons.forEach(btn => {
btn.addEventListener("click", () => { btn.addEventListener("click", () => {
const step = btn.dataset.step; try {
showStep(step); const step = btn.dataset.step;
showStep(step);
} catch (error) {
}
}); });
}); });
prevBtn.addEventListener("click", () => { prevBtn.addEventListener("click", () => {
if (currentStep > 1) showStep(currentStep - 1); try {
if (currentStep > 1) showStep(currentStep - 1);
} catch (error) {
}
}); });
nextBtn.addEventListener("click", () => { nextBtn.addEventListener("click", () => {
if(currentStep < totalSteps) showStep(currentStep + 1); try {
if(currentStep < totalSteps) showStep(currentStep + 1);
} catch (error) {
}
}); });
//Speaker change listener //Speaker change listener
cur_speaker.addEventListener("change", (e) =>{ cur_speaker.addEventListener("change", (e) =>{
document.getElementById("speakerAudioViewer").src = valy[e.target.value].source; try {
document.getElementById("speakerAudioViewer").src = valy[e.target.value].source;
} catch (error) {
}
}) })