show meeting end

This commit is contained in:
Klemek
2024-04-29 23:06:29 +02:00
parent 6096936455
commit df717f06e4
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@
<li>
Remaining meeting time: <b>{{ timeText(totalRemainingTime) }}</b>
</li>
<li>
End estimated at: <b>{{ timeText(estimatedEnd) }}</b>
</li>
<li>Total meeting time: <b>{{ timeText(totalTime) }}</b></li>
<li>
<label for="wheighted">Wheighted topics</label>&nbsp;<input
+11
View File
@@ -45,6 +45,17 @@ let app = {
.map((item) => item.time)
.reduce((a, b) => a + b, 0);
},
estimatedEnd() {
const delta = this.timerStarted
? ((this.timerEnd - new Date()) / (1000 * 60))
: this.showSelected
? this.selectedData.time
: 0;
const toAdd = (this.totalRemainingTime - (this.showSelected ? this.selectedData.time : 0) + delta);
const end = new Date();
end.setMinutes(end.getMinutes() + toAdd);
return end.getHours() * 60 + end.getMinutes();
},
svgData() {
let totalAngle = 0;
return this.filteredData.map((item, index) => {