fix: handle tag select overflow for create secret modal. minor text revisions.

This commit is contained in:
Scott Wilson
2024-11-08 09:29:42 -08:00
parent 7eeff6c406
commit f0d19e4701
4 changed files with 11 additions and 9 deletions
@@ -538,8 +538,9 @@ const SecretMainPageContent = () => {
onOpenChange={(state) => togglePopUp(PopUpNames.CreateSecretForm, state)} onOpenChange={(state) => togglePopUp(PopUpNames.CreateSecretForm, state)}
> >
<ModalContent <ModalContent
title="Create secret" title="Create Secret"
subTitle="Add a secret to the particular environment and folder" subTitle="Add a secret to this particular environment and folder"
bodyClassName="overflow-visible"
> >
<CreateSecretForm <CreateSecretForm
environment={environment} environment={environment}
@@ -141,7 +141,7 @@ export const CreateSecretForm = ({
!canReadTags ? ( !canReadTags ? (
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<FontAwesomeIcon icon={faTriangleExclamation} className="text-yellow-400" /> <FontAwesomeIcon icon={faTriangleExclamation} className="text-yellow-400" />
<span>User lacks permission to read tags. Please grant access.</span> <span>You do not have permission to read tags.</span>
</div> </div>
) : ( ) : (
"" ""
@@ -150,7 +150,7 @@ export const CreateSecretForm = ({
> >
<MultiSelect <MultiSelect
className="w-full" className="w-full"
placeholder="Choose tags to assign to secrets." placeholder="Select tags to assign to secret..."
isMulti isMulti
name="tagIds" name="tagIds"
isDisabled={!canReadTags} isDisabled={!canReadTags}
@@ -1121,9 +1121,10 @@ export const SecretOverviewPage = () => {
onOpenChange={(isOpen) => handlePopUpToggle("addSecretsInAllEnvs", isOpen)} onOpenChange={(isOpen) => handlePopUpToggle("addSecretsInAllEnvs", isOpen)}
> >
<ModalContent <ModalContent
className="max-h-[80vh] overflow-y-auto" className="max-h-[80vh]"
title="Bulk Create & Update" bodyClassName="overflow-visible"
subTitle="Create & update a secret across many environments" title="Create Secrets"
subTitle="Create a secret across multiple environments"
> >
<CreateSecretForm <CreateSecretForm
secretPath={secretPath} secretPath={secretPath}
@@ -242,7 +242,7 @@ export const CreateSecretForm = ({ secretPath = "/", getSecretByKey, onClose }:
!canReadTags ? ( !canReadTags ? (
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<FontAwesomeIcon icon={faTriangleExclamation} className="text-yellow-400" /> <FontAwesomeIcon icon={faTriangleExclamation} className="text-yellow-400" />
<span>User lacks permission to read tags. Please grant access.</span> <span>You do not have permission to read tags.</span>
</div> </div>
) : ( ) : (
"" ""
@@ -251,7 +251,7 @@ export const CreateSecretForm = ({ secretPath = "/", getSecretByKey, onClose }:
> >
<MultiSelect <MultiSelect
className="w-full" className="w-full"
placeholder="Choose tags to assign to secrets." placeholder="Select tags to assign to secrets..."
isMulti isMulti
name="tagIds" name="tagIds"
isDisabled={!canReadTags} isDisabled={!canReadTags}