Complete incidents functionality #97

Merged
amigan merged 27 commits from incidentsEditRecord into trunk 2025-01-05 22:11:47 -05:00
Showing only changes of commit 1812511de0 - Show all commits

View file

@ -162,23 +162,7 @@ export class TalkgroupRecordComponent {
this.form.controls['tagsControl'].setValue(this.tg?.tags ?? []); this.form.controls['tagsControl'].setValue(this.tg?.tags ?? []);
}), }),
); );
/*
this.subscriptions.add(
this.tgService
.getTalkgroup(Number(this.tgid.sys), Number(this.tgid.tg))
.subscribe((data: Talkgroup) => {
this.tg = data;
this.form.controls['name'].setValue(this.tg.name);
this.form.controls['alpha_tag'].setValue(this.tg.alpha_tag);
this.form.controls['tg_group'].setValue(this.tg.tg_group);
this.form.controls['frequency'].setValue(this.tg.frequency);
this.form.controls['alert'].setValue(this.tg.alert);
this.form.controls['weight'].setValue(this.tg.weight);
this.form.controls['icon'].setValue(this.tg?.metadata?.icon ?? '');
this.form.controls['tagInput'].setValue('');
this.form.controls['tagsControl'].setValue(this.tg?.tags ?? []);
}),
); */
this.subscriptions.add( this.subscriptions.add(
this._allTags.subscribe((event) => { this._allTags.subscribe((event) => {
this.allTags = event; this.allTags = event;