From ed31a34e6ad9bb398381397f929fd64ea24c5db1 Mon Sep 17 00:00:00 2001 From: arsforza Date: Mon, 18 Sep 2023 14:33:54 +0200 Subject: [PATCH] fix: production build AB#23656 --- .../src/app/components/chat/chat.component.html | 4 ++-- .../src/app/components/chat/chat.component.ts | 3 +++ .../dialogue-turn/dialogue-turn.component.ts | 6 +----- .../event-speech-bubble.component.html | 14 +++++++------- .../components/timestamp/timestamp.component.ts | 2 +- interfaces/IBF-dashboard/src/app/types/chat.ts | 4 ++++ .../IBF-dashboard/src/app/types/eap-action.ts | 1 + .../IBF-dashboard/src/app/types/indicator-group.ts | 1 + 8 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 interfaces/IBF-dashboard/src/app/types/chat.ts diff --git a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html index b1afe72ef..d86dc998a 100644 --- a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html +++ b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html @@ -158,7 +158,7 @@ diff --git a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts index 9cf5441f9..634b4bddd 100644 --- a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts +++ b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts @@ -26,6 +26,7 @@ import { EventState } from 'src/app/types/event-state'; import { TimelineState } from 'src/app/types/timeline-state'; import { AggregatesService } from '../../services/aggregates.service'; import { TimelineService } from '../../services/timeline.service'; +import { Actor } from '../../types/chat'; import { Indicator } from '../../types/indicator-group'; import { LeadTimeTriggerKey, LeadTimeUnit } from '../../types/lead-time'; import { TriggeredArea } from '../../types/triggered-area'; @@ -78,6 +79,8 @@ export class ChatComponent implements OnInit, OnDestroy { private lastModelRunDateFormat = 'cccc, dd LLLL HH:mm'; public isWarn = false; + public actor = Actor; + constructor( private eapActionsService: EapActionsService, public authService: AuthService, diff --git a/interfaces/IBF-dashboard/src/app/components/dialogue-turn/dialogue-turn.component.ts b/interfaces/IBF-dashboard/src/app/components/dialogue-turn/dialogue-turn.component.ts index d12a2bb73..963ace3d3 100644 --- a/interfaces/IBF-dashboard/src/app/components/dialogue-turn/dialogue-turn.component.ts +++ b/interfaces/IBF-dashboard/src/app/components/dialogue-turn/dialogue-turn.component.ts @@ -1,10 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { DateTime } from 'luxon'; - -enum Actor { - system = 'system', - self = 'self', -} +import { Actor } from '../../types/chat'; @Component({ selector: 'app-dialogue-turn', diff --git a/interfaces/IBF-dashboard/src/app/components/event-speech-bubble/event-speech-bubble.component.html b/interfaces/IBF-dashboard/src/app/components/event-speech-bubble/event-speech-bubble.component.html index f6dd21d57..639773630 100644 --- a/interfaces/IBF-dashboard/src/app/components/event-speech-bubble/event-speech-bubble.component.html +++ b/interfaces/IBF-dashboard/src/app/components/event-speech-bubble/event-speech-bubble.component.html @@ -1,10 +1,10 @@ @@ -190,9 +190,9 @@

- +

+