feat(#4): Add sound alert for a user who hasn't done an estimate when everyone else has

This commit is contained in:
Josh Creek
2023-07-13 20:45:01 +00:00
parent 9160ca6175
commit ae970b6275
4 changed files with 46 additions and 2 deletions
@@ -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;