Skip to content

Commit 9bc47f7

Browse files
authored
Merge branch 'main' into feature/beta_permisions
2 parents 939c647 + 66eb992 commit 9bc47f7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

app/(gcforms)/[locale]/(form administration)/form-builder/[id]/settings/components/DeleteKeyToChangeOptionsNote.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { useTranslation } from "@i18n/client";
22

3-
export const DeleteKeyToChangeOptionsNote = ({ hasApiKey }: { hasApiKey: boolean }) => {
3+
export const DeleteKeyToChangeOptionsNote = ({
4+
hasApiKey,
5+
isPublished,
6+
}: {
7+
hasApiKey: boolean;
8+
isPublished: boolean;
9+
}) => {
410
const { t } = useTranslation("form-builder");
5-
if (!hasApiKey) return null;
11+
if (!hasApiKey || isPublished) return null;
612
return (
713
<div className="mb-4 w-3/5 rounded-md bg-indigo-50 p-3">
814
<h5 className="font-bold">{t("settings.api.deleteApiKeyToChangeOptions.title")}</h5>

app/(gcforms)/[locale]/(form administration)/form-builder/[id]/settings/components/ResponseDelivery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const ResponseDelivery = () => {
293293

294294
{deliveryOptionValue === DeliveryOption.api && (
295295
<div>
296-
<DeleteKeyToChangeOptionsNote hasApiKey={hasApiKey} />
296+
<DeleteKeyToChangeOptionsNote hasApiKey={hasApiKey} isPublished={isPublished} />
297297
<ApiKeyButton showDelete classification={classification} />
298298
<ApiDocNotes />
299299
</div>

0 commit comments

Comments
 (0)