Temporary alert for touch testing

This commit is contained in:
2024-12-20 17:02:40 +00:00
parent 29a58941ad
commit cb00c88197
2 changed files with 7 additions and 1 deletions

View File

@@ -70,6 +70,7 @@
display: inline-flex;
flex-direction: column;
align-items: center;
touch-action: none;
}
</style>

View File

@@ -37,6 +37,11 @@
}
}
function toggleGarage() {
//homeAssistantStore.toggleGarage();
alert('Garage door toggled');
}
setInterval(() => (currentTime.value = new Date()), 1000);
</script>
@@ -111,7 +116,7 @@
:duration="2000"
:increment="100"
:progress-size="38"
v-on:longPress="homeAssistantStore.toggleGarage()"
v-on:longPress="toggleGarage()"
:class="homeAssistantStore.garageState === 'closed' ? 'normal' : 'warning'">
<v-icon
class="kiosk-device-icon"