From cfc7a5a6a0a6cce7d681ac26d4bcbb72260e84c8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 18 Dec 2023 13:46:45 +0100 Subject: [PATCH] [alarm] Added `media_repeat` configuration. --- .../src/components/panels/Alarm/Index.vue | 3 +- .../panels/Entities/Alarm/AlarmEditor.vue | 26 +++++++++ platypush/entities/alarm.py | 1 + platypush/plugins/alarm/__init__.py | 27 ++++++++- platypush/plugins/alarm/_model.py | 56 +++++++++++++------ 5 files changed, 94 insertions(+), 19 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Alarm/Index.vue b/platypush/backend/http/webapp/src/components/panels/Alarm/Index.vue index 015abddce6..a7ab488dfd 100644 --- a/platypush/backend/http/webapp/src/components/panels/Alarm/Index.vue +++ b/platypush/backend/http/webapp/src/components/panels/Alarm/Index.vue @@ -70,7 +70,8 @@ export default { newAlarm: { condition_type: 'cron', when: '* * * * *', - audio_volume: this.$root.config?.alarm?.audio_volume ?? 100 + audio_volume: this.$root.config?.alarm?.audio_volume ?? 100, + media_repeat: true, }, } }, diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Alarm/AlarmEditor.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Alarm/AlarmEditor.vue index bacb7c8a6f..243f897346 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Alarm/AlarmEditor.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Alarm/AlarmEditor.vue @@ -109,6 +109,29 @@ +
+ +
+