From 9eb9ad26e14567e1e01cc044b77e0538155c9435 Mon Sep 17 00:00:00 2001 From: Dirk Peter Date: Tue, 27 Aug 2024 14:04:36 +0200 Subject: [PATCH 1/4] #34: adds reminder type config and display --- README.md | 26 +++++++++ .../reminder-drawer.component.html | 6 ++ .../reminder-drawer.component.less | 2 + .../reminder-drawer.component.ts | 5 ++ .../reminder-modal.component.ts | 38 ++++++++++++- .../reminder-type.component.html | 1 + .../reminder-type.component.less | 3 + .../reminder-type/reminder-type.component.ts | 29 ++++++++++ .../reminder-plugin/reminder-plugin.module.ts | 2 + src/app/reminder-plugin/reminder.model.ts | 8 +++ .../services/reminder.service.ts | 56 +++++++++++++++++-- 11 files changed, 169 insertions(+), 7 deletions(-) create mode 100644 src/app/reminder-plugin/components/reminder-type/reminder-type.component.html create mode 100644 src/app/reminder-plugin/components/reminder-type/reminder-type.component.less create mode 100644 src/app/reminder-plugin/components/reminder-type/reminder-type.component.ts diff --git a/README.md b/README.md index ce4e4bf..c25f326 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,32 @@ _TBD_ --- +## Reminder Type Config + +| Key | Value | Info | +| -------- | -------------- | ---- | +| categroy | `c8y.reminder` | | +| key | `types` | | + +```json +[ + { + "id": "1", + "name": "Type 1" + }, + { + "id": "2", + "name": "My Preferred Type" + }, + { + "id": "a_123", + "name": "A123" + } +] +``` + +--- + ## Useful links ### 📘 Explore the Knowledge Base diff --git a/src/app/reminder-plugin/components/reminder-drawer/reminder-drawer.component.html b/src/app/reminder-plugin/components/reminder-drawer/reminder-drawer.component.html index 791e880..ebc7ed8 100644 --- a/src/app/reminder-plugin/components/reminder-drawer/reminder-drawer.component.html +++ b/src/app/reminder-plugin/components/reminder-drawer/reminder-drawer.component.html @@ -136,6 +136,12 @@

Reminder