Skip to content

Commit

Permalink
fix: production build AB#23656
Browse files Browse the repository at this point in the history
  • Loading branch information
arsforza committed Sep 18, 2023
1 parent 86516d5 commit ed31a34
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
</app-dialogue-turn>
</ng-container>
<app-dialogue-turn
actor="self"
[actor]="actor.self"
*ngFor="let area of filteredActiveAreas; first as isFirst"
[isConnected]="!isFirst"
[isTriggered]="eventState?.event?.thresholdReached"
Expand Down Expand Up @@ -276,7 +276,7 @@
changeAction(
area.placeCode,
action.action,
$event.detail.checked
$event['detail']['checked']
)
"
></ion-checkbox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<app-dialogue-turn
*ngIf="type === 'active'"
isConnected="true"
[isConnected]="true"
[isTriggered]="event.thresholdReached"
[isNotTriggered]="!event.thresholdReached"
[isSelected]="eventBubbleIsSelected(event.eventName)"
isConnected="true"
[isConnected]="true"
>
<ng-container *ngIf="event.activeTrigger && event.thresholdReached">
<span>
Expand Down Expand Up @@ -190,9 +190,9 @@

<app-dialogue-turn
*ngIf="type === 'stopped' && event.eventName === selectedEvent"
isConnected="true"
isStopped="true"
isConnected="true"
[isConnected]="true"
[isStopped]="true"
[isConnected]="true"
>
<ng-container>
<p
Expand Down Expand Up @@ -234,7 +234,7 @@
</ng-container>
</app-dialogue-turn>

<app-dialogue-turn *ngIf="type === 'old'" isConnected="true">
<app-dialogue-turn *ngIf="type === 'old'" [isConnected]="true">
<p
[innerHTML]="
'chat-component.' + disasterTypeName + '.active-event-no-trigger.welcome'
Expand All @@ -254,7 +254,7 @@
></p>
</app-dialogue-turn>

<app-dialogue-turn *ngIf="type === 'no-event'" isConnected="true">
<app-dialogue-turn *ngIf="type === 'no-event'" [isConnected]="true">
<p
[innerHTML]="
'chat-component.' + disasterTypeName + '.no-event-no-trigger.welcome'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DateTime } from 'luxon';
})
export class TimestampComponent implements OnInit {
@Input()
private timestamp: DateTime = DateTime.now();
public timestamp: DateTime = DateTime.now();

private dateFormat = 'cccc, dd LLLL';
private timeFormat = 'HH:mm';
Expand Down
4 changes: 4 additions & 0 deletions interfaces/IBF-dashboard/src/app/types/chat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum Actor {
system = 'system',
self = 'self',
}
1 change: 1 addition & 0 deletions interfaces/IBF-dashboard/src/app/types/eap-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export class EapAction {
placeCode: string;
month: JSON;
monthLong: JSON;
aofLabel?: string;
}
1 change: 1 addition & 0 deletions interfaces/IBF-dashboard/src/app/types/indicator-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class Indicator {
lazyLoad: boolean;
dynamic?: boolean;
description: JSON;
aggregateUnit: string;
}

export enum NumberFormat {
Expand Down

0 comments on commit ed31a34

Please sign in to comment.