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