Merge pull request #2459 from lbryio/issue2431-c-replaceflag
add replace to publish flags
This commit is contained in:
commit
0994c8bebe
2 changed files with 3 additions and 0 deletions
2
flow-typed/publish.js
vendored
2
flow-typed/publish.js
vendored
|
@ -23,6 +23,7 @@ declare type UpdatePublishFormData = {
|
||||||
licenseUrl?: string,
|
licenseUrl?: string,
|
||||||
licenseType?: string,
|
licenseType?: string,
|
||||||
uri?: string,
|
uri?: string,
|
||||||
|
replace?: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
declare type PublishParams = {
|
declare type PublishParams = {
|
||||||
|
@ -45,6 +46,7 @@ declare type PublishParams = {
|
||||||
currency: string,
|
currency: string,
|
||||||
amount: number,
|
amount: number,
|
||||||
},
|
},
|
||||||
|
replace?: boolean,
|
||||||
|
|
||||||
// This is bad.
|
// This is bad.
|
||||||
// Will be removed for tags soon
|
// Will be removed for tags soon
|
||||||
|
|
|
@ -161,6 +161,7 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string) => (dispatch: Dis
|
||||||
uri,
|
uri,
|
||||||
uploadThumbnailStatus: thumbnail ? THUMBNAIL_STATUSES.MANUAL : undefined,
|
uploadThumbnailStatus: thumbnail ? THUMBNAIL_STATUSES.MANUAL : undefined,
|
||||||
licenseUrl,
|
licenseUrl,
|
||||||
|
replace: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Make sure custom liscence's are mapped properly
|
// Make sure custom liscence's are mapped properly
|
||||||
|
|
Loading…
Reference in a new issue