Alert Rules UI

This commit is contained in:
Daniel Ponte 2025-01-07 22:18:53 -05:00
parent 06dd86d74a
commit cfd8584c9b
2 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ export class Talkgroup {
tags!: string[]; tags!: string[];
alert!: boolean; alert!: boolean;
system?: System; system?: System;
alert_config!: AlertRule[]; alert_rules!: AlertRule[];
weight!: number; weight!: number;
learned?: boolean; learned?: boolean;
icon?: string; icon?: string;
@ -86,7 +86,7 @@ export class Talkgroup {
metadata: Metadata | null, metadata: Metadata | null,
tags: string[], tags: string[],
alert: boolean, alert: boolean,
alert_config: AlertRule[], alert_rules: AlertRule[],
weight: number, weight: number,
system?: System, system?: System,
learned?: boolean, learned?: boolean,
@ -122,6 +122,6 @@ export interface TalkgroupUpdate {
metadata: Object | null; metadata: Object | null;
tags: string[] | null; tags: string[] | null;
alert: boolean | null; alert: boolean | null;
alert_config: AlertRule[] | null; alert_rules: AlertRule[] | null;
weight: number | null; weight: number | null;
} }

View file

@ -108,7 +108,7 @@
> >
</div> </div>
<div class="alert"> <div class="alert">
<alert-rule-builder [rules]="tg.alert_config" /> <alert-rule-builder [rules]="tg.alert_rules" />
</div> </div>
</form> </form>
} @else { } @else {