mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-10 16:08:20 -05:00
Merge pull request #4551 from Infisical/fix/move-project-id
Revert "fix: add project slug param for moving secrets on dashboard o…
This commit is contained in:
@@ -337,7 +337,7 @@ export const useMoveSecrets = ({
|
||||
destinationSecretPath,
|
||||
secretIds,
|
||||
shouldOverwrite,
|
||||
projectSlug
|
||||
projectId
|
||||
}) => {
|
||||
const { data } = await apiRequest.post<{
|
||||
isSourceUpdated: boolean;
|
||||
@@ -349,7 +349,7 @@ export const useMoveSecrets = ({
|
||||
destinationSecretPath,
|
||||
secretIds,
|
||||
shouldOverwrite,
|
||||
projectSlug
|
||||
projectId
|
||||
});
|
||||
|
||||
return data;
|
||||
|
||||
@@ -228,7 +228,6 @@ export type TDeleteSecretBatchDTO = {
|
||||
|
||||
export type TMoveSecretsDTO = {
|
||||
projectId: string;
|
||||
projectSlug: string;
|
||||
sourceEnvironment: string;
|
||||
sourceSecretPath: string;
|
||||
destinationEnvironment: string;
|
||||
|
||||
@@ -66,7 +66,6 @@ const Content = ({
|
||||
secrets,
|
||||
environments,
|
||||
projectId,
|
||||
projectSlug,
|
||||
sourceSecretPath
|
||||
}: ContentProps) => {
|
||||
const [search, setSearch] = useState(sourceSecretPath);
|
||||
@@ -195,7 +194,6 @@ const Content = ({
|
||||
destinationEnvironment: environment.slug,
|
||||
destinationSecretPath: value.secretPath,
|
||||
projectId,
|
||||
projectSlug,
|
||||
secretIds: secretsToMove.map((sec) => sec.id)
|
||||
});
|
||||
|
||||
|
||||
@@ -72,7 +72,10 @@ import {
|
||||
useMoveSecrets,
|
||||
useUpdateSecretBatch
|
||||
} from "@app/hooks/api";
|
||||
import { dashboardKeys, fetchDashboardProjectSecretsByKeys } from "@app/hooks/api/dashboard/queries";
|
||||
import {
|
||||
dashboardKeys,
|
||||
fetchDashboardProjectSecretsByKeys
|
||||
} from "@app/hooks/api/dashboard/queries";
|
||||
import { UsedBySecretSyncs } from "@app/hooks/api/dashboard/types";
|
||||
import { secretApprovalRequestKeys } from "@app/hooks/api/secretApprovalRequest/queries";
|
||||
import { PendingAction } from "@app/hooks/api/secretFolders/types";
|
||||
@@ -346,7 +349,6 @@ export const ActionBar = ({
|
||||
destinationEnvironment,
|
||||
destinationSecretPath,
|
||||
projectId,
|
||||
projectSlug: currentProject.slug,
|
||||
secretIds: secretsToMove.map((sec) => sec.id)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user