- {articleType === 'preregistration' && !methods.watch('workId') && (
-
- )}
- {FEATURE_FLAG_JOURNAL && articleType === 'discussion' && isJournalEnabled && (
-
- Payment due:
- $1,000 USD
-
- )}
+ {articleType === 'preregistration' && !workId &&
}
{articleType === 'registered_report' && !canPublishRegisteredReport && (
Only moderators can publish Registered Reports.
@@ -780,6 +756,7 @@ export function PublishingForm({
disabled={
!articleType ||
readOnly ||
+ isNewPreprint ||
isPublishing ||
isDeclined ||
showPrivateWarning ||
@@ -792,9 +769,7 @@ export function PublishingForm({
isLoadingUpsert: isLoadingUpsert || isUploadingImage,
isRedirecting,
isLinkingNonprofit,
- articleType,
- isJournalEnabled: isJournalEnabled ?? false,
- hasWorkId: Boolean(methods.watch('workId')),
+ hasWorkId: Boolean(workId),
})}
@@ -818,7 +793,7 @@ export function PublishingForm({
onConfirm={handleConfirmPublish}
title={getDocumentTitleFromEditor(editor) || 'Untitled Research'}
isPublishing={isPublishing}
- isUpdate={Boolean(methods.watch('workId'))}
+ isUpdate={Boolean(workId)}
onTitleChange={(title) => setDocumentTitle(editor, title)}
variant={articleType === 'grant' ? 'rfp' : 'default'}
zIndex={100}
diff --git a/components/Notebook/PublishingForm/schema.ts b/components/Notebook/PublishingForm/schema.ts
index 0d5962443..3bacdc33f 100644
--- a/components/Notebook/PublishingForm/schema.ts
+++ b/components/Notebook/PublishingForm/schema.ts
@@ -58,7 +58,6 @@ export const publishingFormSchema = z
})
.nullable()
.optional(),
- isJournalEnabled: z.boolean().optional(),
selectedNonprofit: z.any().nullable().optional(),
selectedGrant: z.any().nullable().optional(),
departmentLabName: z.string().optional(),