disable saving drafts for replies (#9815)
This commit is contained in:
@@ -1141,6 +1141,16 @@ export const ComposePost = ({
|
||||
{!IS_WEBFooterSticky && footer}
|
||||
</View>
|
||||
|
||||
{replyTo ? (
|
||||
<Prompt.Basic
|
||||
control={discardPromptControl}
|
||||
title={_(msg`Discard draft?`)}
|
||||
description=""
|
||||
confirmButtonCta={_(msg`Discard`)}
|
||||
confirmButtonColor="negative"
|
||||
onConfirm={handleDiscard}
|
||||
/>
|
||||
) : (
|
||||
<Prompt.Outer control={discardPromptControl}>
|
||||
<Prompt.Content>
|
||||
<Prompt.TitleText>
|
||||
@@ -1151,11 +1161,16 @@ export const ComposePost = ({
|
||||
)}
|
||||
</Prompt.TitleText>
|
||||
<Prompt.DescriptionText>
|
||||
{composerState.draftId
|
||||
? _(
|
||||
msg`You have unsaved changes to this draft, would you like to save them?`,
|
||||
)
|
||||
: _(msg`Would you like to save this as a draft to edit later?`)}
|
||||
{composerState.draftId ? (
|
||||
<Trans>
|
||||
You have unsaved changes to this draft, would you like to
|
||||
save them?
|
||||
</Trans>
|
||||
) : (
|
||||
<Trans>
|
||||
Would you like to save this as a draft to edit later?
|
||||
</Trans>
|
||||
)}
|
||||
</Prompt.DescriptionText>
|
||||
</Prompt.Content>
|
||||
<Prompt.Actions>
|
||||
@@ -1176,6 +1191,7 @@ export const ComposePost = ({
|
||||
<Prompt.Cancel />
|
||||
</Prompt.Actions>
|
||||
</Prompt.Outer>
|
||||
)}
|
||||
</KeyboardAvoidingView>
|
||||
</BottomSheetPortalProvider>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user