Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
854 B
2
Indexable
Never
{
                    let blockingGroup: SMF_BlockingGroup = this.container.blockingGroups.find((b: SMF_BlockingGroup) => b.id == group.Name);

                    if (!blockingGroup) {
                        blockingGroup = new SMF_BlockingGroup(this.sysName, group.Name);
                        this.container.blockingGroups.push(blockingGroup);
                    } else {
                        // handle case when bg exists
                        return;
                    }

                    const locations: string[] = [];

                    group.Locations.forEach(location => locations.push(`${this.sysName}:${location}`));
                    blockingGroup.add("enabled", group.IsEnabled)
                    blockingGroup.addUnique("locations", locations);
                    blockingGroup.sort("locations");
                });
}
Leave a Comment