diff --git a/assets/js/components/Config/HemsModal.vue b/assets/js/components/Config/HemsModal.vue index d5f4b26cc..cd293ef25 100644 --- a/assets/js/components/Config/HemsModal.vue +++ b/assets/js/components/Config/HemsModal.vue @@ -7,21 +7,91 @@ :defaultYaml="defaultYaml" endpoint="/config/hems" removeKey="hems" + :noYamlEditor="fromYaml" + :disableSave="fromYaml" data-testid="hems-modal" @changed="$emit('changed')" - /> + @open="loadSessions" + > + + + + {{ $t("config.hems.eventsRecorded", { count: sessionCount }) }} + {{ + $t("config.hems.lastEvent", { timeAgo: formatLastEvent(lastEvent.created) }) + }} + + + {{ $t("config.hems.downloadCsv") }} + + + + {{ $t("config.hems.yamlConfigured") }} + + + diff --git a/assets/js/components/Config/YamlModal.vue b/assets/js/components/Config/YamlModal.vue index 42e620ac4..3459f09a3 100644 --- a/assets/js/components/Config/YamlModal.vue +++ b/assets/js/components/Config/YamlModal.vue @@ -6,9 +6,10 @@ {{ $t("config.general.docsLink") }}
+ {{ $t("config.hems.yamlConfigured") }} +
{{ error }}