add uploadStatus to PublishForm
This commit is contained in:
parent
4d6d1f2e95
commit
9c235861fe
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue