stories: disable text story download until we can download them

This commit is contained in:
Jamie Kyle 2022-10-20 11:43:38 -07:00 committed by GitHub
parent 5f3c9a653d
commit 02a76edfb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,14 +120,17 @@ export const MyStories = ({
/>
</div>
</button>
<button
aria-label={i18n('MyStories__download')}
className="MyStories__story__download"
onClick={() => {
onSave(story);
}}
type="button"
/>
{story.attachment &&
(story.attachment.path || story.attachment.data) && (
<button
aria-label={i18n('MyStories__download')}
className="MyStories__story__download"
onClick={() => {
onSave(story);
}}
type="button"
/>
)}
<ContextMenu
i18n={i18n}
menuOptions={[
@ -138,13 +141,6 @@ export const MyStories = ({
onForward(story.messageId);
},
},
{
icon: 'MyStories__icon--save',
label: i18n('save'),
onClick: () => {
onSave(story);
},
},
{
icon: 'StoryListItem__icon--info',
label: i18n('StoryListItem__info'),