mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
fix: fix project identity wizard not resetting on close
This commit is contained in:
@@ -543,7 +543,12 @@ export const IdentityTab = withProjectPermission(
|
|||||||
animate={{ opacity: 1, translateX: 0 }}
|
animate={{ opacity: 1, translateX: 0 }}
|
||||||
exit={{ opacity: 0, translateX: -30 }}
|
exit={{ opacity: 0, translateX: -30 }}
|
||||||
>
|
>
|
||||||
<ProjectIdentityModal onClose={() => handlePopUpClose("createIdentity")} />
|
<ProjectIdentityModal
|
||||||
|
onClose={() => {
|
||||||
|
handlePopUpClose("createIdentity");
|
||||||
|
setWizardStep(WizardSteps.SelectAction);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
)}
|
)}
|
||||||
{wizardStep === WizardSteps.LinkIdentity && (
|
{wizardStep === WizardSteps.LinkIdentity && (
|
||||||
|
|||||||
+6
-3
@@ -13,6 +13,7 @@ import {
|
|||||||
FormLabel,
|
FormLabel,
|
||||||
IconButton,
|
IconButton,
|
||||||
Input,
|
Input,
|
||||||
|
ModalClose,
|
||||||
Switch
|
Switch
|
||||||
} from "@app/components/v2";
|
} from "@app/components/v2";
|
||||||
import { useProject } from "@app/context";
|
import { useProject } from "@app/context";
|
||||||
@@ -280,9 +281,11 @@ export const ProjectIdentityModal = ({ onClose, identity }: ContentProps) => {
|
|||||||
>
|
>
|
||||||
{isUpdate ? "Update" : "Create"}
|
{isUpdate ? "Update" : "Create"}
|
||||||
</Button>
|
</Button>
|
||||||
<Button colorSchema="secondary" variant="plain" onClick={() => onClose()}>
|
<ModalClose asChild>
|
||||||
Cancel
|
<Button colorSchema="secondary" variant="plain">
|
||||||
</Button>
|
Cancel
|
||||||
|
</Button>
|
||||||
|
</ModalClose>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user