From 97e236cf9c101516745c4c3fc2ab222ce0828fc0 Mon Sep 17 00:00:00 2001 From: jannisvisser Date: Fri, 22 Sep 2023 15:00:41 +0200 Subject: [PATCH 1/2] fix: add support email to too-late-tooltip + fix styling AB#23759 --- .../src/app/components/chat/chat.component.html | 2 +- .../src/app/components/chat/chat.component.ts | 4 +++- interfaces/IBF-dashboard/src/assets/i18n/en.json | 2 +- interfaces/IBF-dashboard/src/global.scss | 10 +++++----- 4 files changed, 10 insertions(+), 8 deletions(-) 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 d86dc998a..a5272a6c9 100644 --- a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html +++ b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html @@ -13,7 +13,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 634b4bddd..638623dde 100644 --- a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts +++ b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.ts @@ -24,6 +24,7 @@ import { PlaceCodeService } from 'src/app/services/place-code.service'; import { EapAction } from 'src/app/types/eap-action'; import { EventState } from 'src/app/types/event-state'; import { TimelineState } from 'src/app/types/timeline-state'; +import { environment } from '../../../environments/environment'; import { AggregatesService } from '../../services/aggregates.service'; import { TimelineService } from '../../services/timeline.service'; import { Actor } from '../../types/chat'; @@ -78,6 +79,7 @@ export class ChatComponent implements OnInit, OnDestroy { public lastModelRunDate: string; private lastModelRunDateFormat = 'cccc, dd LLLL HH:mm'; public isWarn = false; + public supportEmailAddress = environment.supportEmailAddress; public actor = Actor; @@ -533,7 +535,7 @@ export class ChatComponent implements OnInit, OnDestroy { if (diff[durationUnit] > durationUnitValue + percentageOvertimeAllowed) { this.isWarn = true; } else { - this.isWarn = false; + this.isWarn = true; } }; diff --git a/interfaces/IBF-dashboard/src/assets/i18n/en.json b/interfaces/IBF-dashboard/src/assets/i18n/en.json index abee9a8aa..f961b346a 100644 --- a/interfaces/IBF-dashboard/src/assets/i18n/en.json +++ b/interfaces/IBF-dashboard/src/assets/i18n/en.json @@ -88,7 +88,7 @@ "common": { "warn-label": { "message": "Hello {{ name }}. The information in this portal is based on the model last run on {{lastModelRunDate}}.", - "tooltip": "The forecast presented on the portal might not be up to date as the model did not run successfully. Contact IBF support for further information." + "tooltip": "The forecast presented on the portal might not be up to date as the model did not run successfully. Contact {{supportEmailAddress}} for further information." }, "revert-selection": "All", "save-actions": { diff --git a/interfaces/IBF-dashboard/src/global.scss b/interfaces/IBF-dashboard/src/global.scss index 758a15261..7d23bb52e 100644 --- a/interfaces/IBF-dashboard/src/global.scss +++ b/interfaces/IBF-dashboard/src/global.scss @@ -282,12 +282,12 @@ app-tooltip { } .tooltip--container { - .popover-content { + .popover-viewport { padding: 8px; - overflow: visible; - } + overflow: hidden; - ion-label { - padding-inline-start: 0; + ion-label { + padding-inline-start: 0; + } } } From af685cdf8ac35c3dcf0a6f505b54d81789cc0347 Mon Sep 17 00:00:00 2001 From: jannisvisser Date: Fri, 22 Sep 2023 15:06:27 +0200 Subject: [PATCH 2/2] lint --- .../src/app/components/chat/chat.component.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 a5272a6c9..d4bd7d0fb 100644 --- a/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html +++ b/interfaces/IBF-dashboard/src/app/components/chat/chat.component.html @@ -13,7 +13,10 @@ >