From 0ccae372fa6845fa329d8a28542256c2e87b6c7c Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Tue, 2 Mar 2021 21:00:32 +0100 Subject: [PATCH] scenario thresholds (#98) --- src/app/app.module.ts | 2 + .../item-detail/item-detail.component.html | 43 ++++++++- .../item-detail/item-detail.component.scss | 8 ++ src/app/items.service.model.ts | 8 ++ src/app/notification/notification-messages.ts | 6 +- src/app/scenario-api.service.ts | 7 ++ src/app/scenario/scenario.component.html | 4 + src/app/scenario/scenario.component.scss | 4 + .../threshold/threshold.component.css | 0 .../threshold/threshold.component.html | 39 ++++++++ .../threshold/threshold.component.spec.ts | 30 ++++++ .../scenario/threshold/threshold.component.ts | 94 +++++++++++++++++++ 12 files changed, 241 insertions(+), 4 deletions(-) create mode 100644 src/app/scenario/threshold/threshold.component.css create mode 100644 src/app/scenario/threshold/threshold.component.html create mode 100644 src/app/scenario/threshold/threshold.component.spec.ts create mode 100644 src/app/scenario/threshold/threshold.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 7f98ea7b..2733dd4a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -59,6 +59,7 @@ import { ItemControlsComponent } from './scenario/item-controls/item-controls.co import { ShareComponent } from './item-detail/share/share.component'; import { CreateNewShareLinkComponent } from './item-detail/share/create-new-share-link/create-new-share-link.component'; import { DeleteShareLinkComponent } from './item-detail/share/delete-share-link/delete-share-link.component'; +import { ThresholdComponent } from './scenario/threshold/threshold.component'; const appRoutes: Routes = [ { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] }, @@ -138,6 +139,7 @@ const appRoutes: Routes = [ ShareComponent, CreateNewShareLinkComponent, DeleteShareLinkComponent, + ThresholdComponent, ], imports: [ RouterModule.forRoot( diff --git a/src/app/item-detail/item-detail.component.html b/src/app/item-detail/item-detail.component.html index 8bac28cb..c5c368b7 100644 --- a/src/app/item-detail/item-detail.component.html +++ b/src/app/item-detail/item-detail.component.html @@ -9,7 +9,8 @@
- +