diff --git a/.github/workflows/web-check.yml b/.github/workflows/web-check.yml index 8b267c5..07c5a9e 100644 --- a/.github/workflows/web-check.yml +++ b/.github/workflows/web-check.yml @@ -3,7 +3,7 @@ name: Web Check permissions: contents: read -on: ["push", "pull_request", "workflow_call"] +on: ["pull_request", "workflow_call"] jobs: ci: diff --git a/web/src/components/DeviceControl.tsx b/web/src/components/DeviceControl.tsx index 38a7a51..0078da2 100644 --- a/web/src/components/DeviceControl.tsx +++ b/web/src/components/DeviceControl.tsx @@ -17,7 +17,7 @@ export default component$(() => { const sendCommand = $(async (command: string) => { if (!selectedAddress.value) { - message.value = 'Bitte zuerst ein Gerät auswählen'; + message.value = 'Please select a device first'; return; } const token = localStorage.getItem('ot_br_setup_token') ?? ''; @@ -27,9 +27,9 @@ export default component$(() => { address: selectedAddress.value, command, }); - message.value = `"${command}" gesendet`; + message.value = `"${command}" sent to ${selectedAddress.value}`; } catch (e) { - message.value = e instanceof Error ? e.message : 'Fehler beim Senden'; + message.value = e instanceof Error ? e.message : 'Failed to send command'; } finally { sending.value = false; } @@ -37,9 +37,9 @@ export default component$(() => { return (
-

Gerätesteuerung

+

Device control

{neighbors.value.length === 0 ? ( -

Keine Geräte im Netzwerk gefunden.

+

No devices found in the network.

) : ( <>