Merge pull request #7 from ericasch6/codex/remove-moderator-throw-throttle
CI/CD / test_and_check_app (push) Successful in 3m38s
CI/CD / Publish immutable image (push) Successful in 2m18s

removed throttle for mod
This commit is contained in:
Twyco
2026-09-03 13:39:35 +02:00
committed by GitHub
5 changed files with 80 additions and 15 deletions
+4 -1
View File
@@ -21,6 +21,7 @@ const { activePaperBalls, hitPlayerIds, throwingAtPlayerId, throwPaperBall } =
usePaperBallToss({
roomId: () => props.room.id,
currentPlayerId: () => props.currentPlayer.id,
currentPlayerIsModerator: () => props.currentPlayer.is_moderator,
board: gameBoard,
});
@@ -115,7 +116,9 @@ const voteCount = computed(
:revealed="room.revealed"
:presenter-mode="presenterMode"
:is-paper-ball-hit="hitPlayerIds.includes(player.id)"
:throw-disabled="throwingAtPlayerId !== null"
:throw-disabled="
!currentPlayer.is_moderator && throwingAtPlayerId !== null
"
@throw-paper-ball="throwPaperBall"
/>