generated from cloud-gov/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #483 from cloud-gov/eoc/468-data
Functional users list overlays
- Loading branch information
Showing
23 changed files
with
518 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ CF_API_TOKEN= | |
# Prefixing a variable with NEXT_PUBLIC_ will make it available to the browser: | ||
# https://nextjs.org/docs/app/building-your-application/configuring/environment-variables#bundling-environment-variables-for-the-browser | ||
NEXT_PUBLIC_USER_INVITE_URL=https://account.dev.us-gov-west-1.aws-us-gov.cloud.gov/invite | ||
NEXT_PUBLIC_CLOUD_SUPPORT_URL="mailto:[email protected]?body=What+is+your+question%3F%0D%0A%0D%0APlease+provide+your+application+name+or+URL.+Do+not+include+any+sensitive+information+about+your+platform+in+this+email." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { UsersActionsOrgRoles } from '@/components/UsersActions/UsersActionsOrgRoles'; | ||
import { UserOrgPage } from '@/controllers/controller-types'; | ||
import { ServiceCredentialBindingObj } from '@/api/cf/cloudfoundry-types'; | ||
import { OverlayHeaderUsername } from './OverlayHeaderUsername'; | ||
|
||
export function OrgUserOrgRolesOverlay({ | ||
orgGuid, | ||
user, | ||
onCancel, | ||
onSuccess, | ||
serviceAccount, | ||
}: { | ||
orgGuid: string; | ||
user?: UserOrgPage | undefined | null; | ||
onCancel: Function; | ||
onSuccess: Function; | ||
serviceAccount?: ServiceCredentialBindingObj | undefined | null; | ||
}) { | ||
if (!user) return null; | ||
return ( | ||
<> | ||
<OverlayHeaderUsername | ||
header="update organization roles" | ||
serviceAccount={serviceAccount} | ||
username={user.username} | ||
/> | ||
<div className="usa-prose"> | ||
<p> | ||
By assigning specific roles, you can grant a user access to specific | ||
information and features within a given organization. | ||
</p> | ||
<UsersActionsOrgRoles | ||
orgGuid={orgGuid} | ||
userGuid={user.guid} | ||
onCancel={onCancel} | ||
onSuccess={onSuccess} | ||
/> | ||
</div> | ||
</> | ||
); | ||
} |
Oops, something went wrong.