INNER CODE UNIT · JavaScript

GrantCell

infrahq/infra · ui/pages/destinations/[id]/index.js:161

function GrantCell({ grantsList, grant, destination, onRemove, onUpdate }) {
  const checkbox = useRef()
  const [checked, setChecked] = useState(false)
  const [selectedNamespaces, setSelectedNamespaces] = useState([])

  const destinationPrivileges = grant.resourcePrivilegeMap.get(destination.name)

  const namespacesPrivilegeMap = new Map(
    Array.from(grant.resourcePrivilegeMap).filter(([key]) => {
      if (key.includes('.')) {
        return true
      }

      return false
    })
  )

  useEffect(() => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…