Collections #383
3 changed files with 10 additions and 8 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -4380,7 +4380,7 @@ function doCollectionPublish(options, localId) {
|
||||||
}));
|
}));
|
||||||
dispatch(doCheckPendingClaims());
|
dispatch(doCheckPendingClaims());
|
||||||
dispatch(doFetchCollectionListMine(1, 10));
|
dispatch(doFetchCollectionListMine(1, 10));
|
||||||
resolve(collectionClaim);
|
return collectionClaim;
|
||||||
}
|
}
|
||||||
|
|
||||||
function failure(error) {
|
function failure(error) {
|
||||||
|
@ -4450,7 +4450,7 @@ function doCollectionPublishUpdate(options) {
|
||||||
});
|
});
|
||||||
dispatch(doCheckPendingClaims());
|
dispatch(doCheckPendingClaims());
|
||||||
dispatch(doFetchCollectionListMine(1, 10));
|
dispatch(doFetchCollectionListMine(1, 10));
|
||||||
resolve(collectionClaim);
|
return collectionClaim;
|
||||||
}
|
}
|
||||||
|
|
||||||
function failure(error) {
|
function failure(error) {
|
||||||
|
@ -4608,7 +4608,8 @@ const doCollectionDelete = (id, colKey = undefined) => (dispatch, getState) => {
|
||||||
collectionKey: colKey
|
collectionKey: colKey
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (claim) {
|
if (claim && !colKey) {
|
||||||
|
// could support "abandon, but keep" later
|
||||||
const { txid, nout } = claim;
|
const { txid, nout } = claim;
|
||||||
return dispatch(doAbandonClaim(txid, nout, collectionDelete));
|
return dispatch(doAbandonClaim(txid, nout, collectionDelete));
|
||||||
}
|
}
|
||||||
|
|
|
@ -788,7 +788,7 @@ export function doCollectionPublish(
|
||||||
);
|
);
|
||||||
dispatch(doCheckPendingClaims());
|
dispatch(doCheckPendingClaims());
|
||||||
dispatch(doFetchCollectionListMine(1, 10));
|
dispatch(doFetchCollectionListMine(1, 10));
|
||||||
resolve(collectionClaim);
|
return collectionClaim;
|
||||||
}
|
}
|
||||||
|
|
||||||
function failure(error) {
|
function failure(error) {
|
||||||
|
@ -879,7 +879,7 @@ export function doCollectionPublishUpdate(options: {
|
||||||
});
|
});
|
||||||
dispatch(doCheckPendingClaims());
|
dispatch(doCheckPendingClaims());
|
||||||
dispatch(doFetchCollectionListMine(1, 10));
|
dispatch(doFetchCollectionListMine(1, 10));
|
||||||
resolve(collectionClaim);
|
return collectionClaim;
|
||||||
}
|
}
|
||||||
|
|
||||||
function failure(error) {
|
function failure(error) {
|
||||||
|
|
|
@ -55,7 +55,8 @@ export const doCollectionDelete = (id: string, colKey: ?string = undefined) => (
|
||||||
Array/< { claimId: string, items: ?Array } > Array/< { claimId: string, items: ?Array<GenericClaim> } >
|
|||||||
collectionKey: colKey,
|
collectionKey: colKey,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (claim) {
|
if (claim && !colKey) {
|
||||||
Array/< { claimId: string, items: ?Array } > Array/< { claimId: string, items: ?Array<GenericClaim> } >
Array/< { claimId: string, items: ?Array } > Array/< { claimId: string, items: ?Array<GenericClaim> } >
|
|||||||
|
// could support "abandon, but keep" later
|
||||||
Array/< { claimId: string, items: ?Array } > Array/< { claimId: string, items: ?Array<GenericClaim> } >
|
|||||||
const { txid, nout } = claim;
|
const { txid, nout } = claim;
|
||||||
return dispatch(doAbandonClaim(txid, nout, collectionDelete));
|
return dispatch(doAbandonClaim(txid, nout, collectionDelete));
|
||||||
}
|
}
|
||||||
|
|
||||||
Array/< { claimId: string, items: ?Array } > Array/< { claimId: string, items: ?Array<GenericClaim> } >
Array/< { claimId: string, items: ?Array } > Array/< { claimId: string, items: ?Array<GenericClaim> } >
|
Loading…
Reference in a new issue
Array/< { claimId: string, items: ?Array } >