diff --git a/data/app.js b/data/app.js index f15188e..29752b3 100644 --- a/data/app.js +++ b/data/app.js @@ -237,6 +237,7 @@ async function renderDevice(el) {

Device Actions

+
@@ -263,6 +264,12 @@ async function renderDevice(el) { status.style.color = '#c62828'; } }; + + document.getElementById('syncTime').onclick = async () => { + toast('Syncing...'); + const result = await api('/api/action/sync-time', { method: 'POST' }); + toast(result.msg || 'Time synced'); + }; } async function renderFirmware(el) {