mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-13 11:03:46 +00:00
feat(#4): Add sound alert for a user who hasn't done an estimate when everyone else has
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
let showRestartButton = false;
|
||||
let showEstimates = false;
|
||||
let disableEstimates: boolean = false;
|
||||
let audioElement;
|
||||
|
||||
function closeModal() {
|
||||
showModal = false;
|
||||
@@ -134,6 +135,8 @@
|
||||
if (usersList && typeof usersList.triggerEmoji === 'function') {
|
||||
usersList.triggerEmoji(message.cardId, message.emoji);
|
||||
}
|
||||
} else if (message.type === 'nudge') {
|
||||
audioElement.play();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,6 +193,8 @@
|
||||
<EstimateGroupsList {estimateGroups} />
|
||||
{/if}
|
||||
|
||||
<audio src="/call-to-attention.mp3" bind:this={audioElement}></audio>
|
||||
|
||||
<style>
|
||||
.button-container {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user