add secretGroup attribute to model definition

This commit is contained in:
Chukwunonso Frank
2023-07-20 12:58:07 +01:00
parent 6ee7081640
commit 8abe7c7f99
4 changed files with 16 additions and 12 deletions
@@ -4,6 +4,7 @@ interface Props {
integrationAuthId: string;
isActive: boolean;
secretPath: string;
secretGroup: string;
app: string | null;
appId: string | null;
sourceEnvironment: string;
@@ -34,7 +35,8 @@ const createIntegration = ({
owner,
path,
region,
secretPath
secretPath,
secretGroup
}: Props) =>
SecurityClient.fetchCall("/api/v1/integration", {
method: "POST",
@@ -54,7 +56,8 @@ const createIntegration = ({
owner,
path,
region,
secretPath
secretPath,
secretGroup
})
}).then(async (res) => {
if (res && res.status === 200) {
@@ -86,7 +86,8 @@ export default function NorthflankCreateIntegrationPage() {
owner: null,
path: null,
region: null,
secretPath
secretPath,
secretGroup: targetSecretGroup
});
setIsLoading(false);