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

View file

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