Fix OAuth code exchange and go lint
Authorization-code exchange used ExternalClientID, which is empty for registered clients and broke e2e token grants. Pass the authenticated client's GID instead. Also satisfy wsl_v5 blank-line rules, wire the delete reference dialog through its mutation hook, and name the filemanager logger. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -30,9 +30,7 @@ import {
|
||||
useDialogRef,
|
||||
} from "@probo/ui";
|
||||
|
||||
import type { compliancePageReferenceMutationsDeleteMutation } from "#/__generated__/core/compliancePageReferenceMutationsDeleteMutation.graphql";
|
||||
import { useMutation } from "#/lib/relay/useMutation";
|
||||
import { deleteCompliancePageReferenceMutation } from "#/pages/organizations/compliance-page/_lib/compliancePageReferenceMutations";
|
||||
import { useDeleteCompliancePageReferenceMutation } from "#/pages/organizations/compliance-page/_lib/compliancePageReferenceMutations";
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode;
|
||||
@@ -52,16 +50,10 @@ export function DeleteCompliancePageReferenceDialog({
|
||||
const { __ } = useTranslate();
|
||||
const ref = useDialogRef();
|
||||
|
||||
const [mutate, isDeleting] = useMutation<compliancePageReferenceMutationsDeleteMutation>(
|
||||
deleteCompliancePageReferenceMutation,
|
||||
{
|
||||
successMessage: __("Reference deleted successfully"),
|
||||
errorToast: __("Failed to delete reference"),
|
||||
},
|
||||
);
|
||||
const [deleteReference, isDeleting] = useDeleteCompliancePageReferenceMutation();
|
||||
|
||||
const handleDelete = async () => {
|
||||
await mutate({
|
||||
await deleteReference({
|
||||
variables: {
|
||||
input: {
|
||||
id: referenceId,
|
||||
|
||||
Reference in New Issue
Block a user