Skip to content

Commit

Permalink
show devs manager in device registration
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jul 17, 2023
1 parent 750040c commit 1d40756
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pxt-jacdac
Submodule pxt-jacdac updated 100 files
7 changes: 6 additions & 1 deletion src/components/AddServiceIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import AddIcon from "@mui/icons-material/Add"
// tslint:disable-next-line: match-default-export-name no-submodule-imports
import IconButtonWithTooltip from "./ui/IconButtonWithTooltip"
import { useId } from "react"
import { SRV_DEVICE_SCRIPT_MANAGER } from "../../jacdac-ts/src/jdom/constants"

export default function AddServiceIconButton(props: {
onAdd: (service: jdspec.ServiceSpec) => void
Expand All @@ -24,7 +25,11 @@ export default function AddServiceIconButton(props: {
const services = useMemo(
() =>
serviceSpecifications()
.filter(srv => !isInfrastructure(srv))
.filter(
srv =>
srv.classIdentifier === SRV_DEVICE_SCRIPT_MANAGER ||
!isInfrastructure(srv)
)
.filter(srv => !serviceFilter || serviceFilter(srv)),
[serviceFilter]
)
Expand Down

0 comments on commit 1d40756

Please sign in to comment.