add uploadStatus to PublishForm

This commit is contained in:
Travis Eden 2018-04-02 09:35:52 -04:00 committed by Sean Yesmunt
parent 4d6d1f2e95
commit 9c235861fe
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,7 @@ type Props = {
title: ?string,
thumbnail: ?string,
uploadThumbnailStatus: ?string,
uploadStatus: ?string,
description: ?string,
language: string,
nsfw: boolean,
@ -274,6 +275,7 @@ class PublishForm extends React.PureComponent<Props> {
title,
thumbnail,
uploadThumbnailStatus,
uploadStatus,
description,
language,
nsfw,
@ -363,6 +365,7 @@ class PublishForm extends React.PureComponent<Props> {
updatePublishForm={updatePublishForm}
formDisabled={formDisabled}
/>
<p>status: {uploadStatus}</p>
</FormRow>
<FormRow padded>
<FormField

View file

@ -16,6 +16,7 @@ type PublishState = {
title: string,
thumbnail: string,
uploadThumbnailStatus: string,
uploadStatus: string,
description: string,
language: string,
tosAccepted: boolean,
@ -41,6 +42,7 @@ export type UpdatePublishFormData = {
title?: string,
thumbnail?: string,
uploadThumbnailStatus?: string,
uploadStatus?: string,
description?: string,
language?: string,
tosAccepted?: boolean,
@ -100,6 +102,7 @@ const defaultState: PublishState = {
title: '',
thumbnail: '',
uploadThumbnailStatus: STATUSES.API_DOWN,
uploadStatus: STATUSES.API_DOWN,
description: '',
language: 'en',
nsfw: false,