From 4e328807d1cf098d61753f058428b846852aeeb9 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 2 Jun 2024 11:58:04 +1200 Subject: [PATCH] tidy up ui for auto announce --- public/index.html | 48 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/public/index.html b/public/index.html index fa16fd4..68432e3 100644 --- a/public/index.html +++ b/public/index.html @@ -162,16 +162,38 @@
{{ config.lxmf_address_hash }}
-
Auto Announce
- - - - - - - - + + + + + + +
Last announced: {{ formatSecondsAgo(config.last_announced_at) }} @@ -201,10 +223,6 @@
-
-
Audio Call Address
-
{{ config.audio_call_address_hash }}
-
Status
@@ -1447,6 +1465,10 @@ async saveIdentitySettings() { await this.updateConfig({ "display_name": this.displayName, + }); + }, + async onAnnounceIntervalSecondsChange() { + await this.updateConfig({ "auto_announce_interval_seconds": this.config.auto_announce_interval_seconds, }); },