If there are no networks, or all networks have groups assigned, there is the possibility that the user has access to no network. In this case the "Add new device" button should be disabled.
Implementation suggestion:
Extend UserProfile type with networks property and modify appropriate API endpoint to return user-accessible networks.
If there are no networks, or all networks have groups assigned, there is the possibility that the user has access to no network. In this case the "Add new device" button should be disabled.
Implementation suggestion:
Extend
UserProfile
type withnetworks
property and modify appropriate API endpoint to return user-accessible networks.