Disable click on disabled slots

This commit is contained in:
2024-05-19 07:18:13 -04:00
parent 76b0498a18
commit a6e357f973

View File

@@ -169,6 +169,7 @@ interface DayBodyScope {
function selectBlock(event: MouseEvent, scope: DayBodyScope, block: Interval) {
// TODO: Disable blocks before today with updateDisabled and/or comparison
if (scope.timestamp.disabled) return false;
selectedBlock.value === block
? (selectedBlock.value = null)
: (selectedBlock.value = block);