Feat background collection update #427
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -4468,7 +4468,6 @@ function doCollectionPublish(options, localId) {
|
||||||
function doCollectionPublishUpdate(options, isBackgroundUpdate) {
|
function doCollectionPublishUpdate(options, isBackgroundUpdate) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
// TODO: implement one click update
|
// TODO: implement one click update
|
||||||
const state = getState();
|
|
||||||
|
|
||||||
const updateParams = isBackgroundUpdate ? {
|
const updateParams = isBackgroundUpdate ? {
|
||||||
blocking: true,
|
blocking: true,
|
||||||
|
@ -4488,6 +4487,7 @@ function doCollectionPublishUpdate(options, isBackgroundUpdate) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isBackgroundUpdate && updateParams.claim_id) {
|
if (isBackgroundUpdate && updateParams.claim_id) {
|
||||||
|
const state = getState();
|
||||||
updateParams['claims'] = makeSelectClaimIdsForCollectionId(updateParams.claim_id)(state);
|
updateParams['claims'] = makeSelectClaimIdsForCollectionId(updateParams.claim_id)(state);
|
||||||
} else if (options.claims) {
|
} else if (options.claims) {
|
||||||
updateParams['claims'] = options.claims;
|
updateParams['claims'] = options.claims;
|
||||||
|
|
|
@ -847,7 +847,6 @@ export function doCollectionPublishUpdate(
|
||||||
) {
|
) {
|
||||||
return (dispatch: Dispatch, getState: GetState): Promise<any> => {
|
return (dispatch: Dispatch, getState: GetState): Promise<any> => {
|
||||||
// TODO: implement one click update
|
// TODO: implement one click update
|
||||||
const state = getState();
|
|
||||||
|
|
||||||
const updateParams: {
|
const updateParams: {
|
||||||
bid?: string,
|
bid?: string,
|
||||||
|
@ -880,6 +879,7 @@ export function doCollectionPublishUpdate(
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isBackgroundUpdate && updateParams.claim_id) {
|
if (isBackgroundUpdate && updateParams.claim_id) {
|
||||||
|
const state = getState();
|
||||||
updateParams['claims'] = makeSelectClaimIdsForCollectionId(updateParams.claim_id)(state);
|
updateParams['claims'] = makeSelectClaimIdsForCollectionId(updateParams.claim_id)(state);
|
||||||
} else if (options.claims) {
|
} else if (options.claims) {
|
||||||
updateParams['claims'] = options.claims;
|
updateParams['claims'] = options.claims;
|
||||||
|
|
Loading…
Reference in a new issue