cleanup
This commit is contained in:
parent
40fc75320d
commit
32a85a9ff3
4 changed files with 6 additions and 14 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -4153,7 +4153,6 @@ function doUpdateChannel(params, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// we'll need to remove these once we add locations/channels to channel page edit/create options
|
// we'll need to remove these once we add locations/channels to channel page edit/create options
|
||||||
|
|
||||||
if (channelClaim && channelClaim.value && channelClaim.value.locations) {
|
if (channelClaim && channelClaim.value && channelClaim.value.locations) {
|
||||||
updateParams.locations = channelClaim.value.locations;
|
updateParams.locations = channelClaim.value.locations;
|
||||||
}
|
}
|
||||||
|
@ -4187,7 +4186,7 @@ function doImportChannel(certificate) {
|
||||||
type: IMPORT_CHANNEL_STARTED
|
type: IMPORT_CHANNEL_STARTED
|
||||||
});
|
});
|
||||||
|
|
||||||
return lbryProxy.channel_import({ channel_data: certificate }).then(result => {
|
return lbryProxy.channel_import({ channel_data: certificate }).then(() => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: IMPORT_CHANNEL_COMPLETED
|
type: IMPORT_CHANNEL_COMPLETED
|
||||||
});
|
});
|
||||||
|
|
2
dist/flow-typed/Collections.js
vendored
2
dist/flow-typed/Collections.js
vendored
|
@ -5,7 +5,7 @@ declare type Collection = {
|
||||||
type: string,
|
type: string,
|
||||||
updatedAt: number,
|
updatedAt: number,
|
||||||
totalItems?: number,
|
totalItems?: number,
|
||||||
sourceid?: string, // if copied, claimId of original collection
|
sourceId?: string, // if copied, claimId of original collection
|
||||||
};
|
};
|
||||||
|
|
||||||
declare type CollectionState = {
|
declare type CollectionState = {
|
||||||
|
|
2
flow-typed/Collections.js
vendored
2
flow-typed/Collections.js
vendored
|
@ -5,7 +5,7 @@ declare type Collection = {
|
||||||
type: string,
|
type: string,
|
||||||
updatedAt: number,
|
updatedAt: number,
|
||||||
totalItems?: number,
|
totalItems?: number,
|
||||||
sourceid?: string, // if copied, claimId of original collection
|
sourceId?: string, // if copied, claimId of original collection
|
||||||
};
|
};
|
||||||
|
|
||||||
declare type CollectionState = {
|
declare type CollectionState = {
|
||||||
|
|
|
@ -10,8 +10,6 @@ import {
|
||||||
selectClaimsByUri,
|
selectClaimsByUri,
|
||||||
selectMyChannelClaims,
|
selectMyChannelClaims,
|
||||||
selectPendingIds,
|
selectPendingIds,
|
||||||
selectClaimsById,
|
|
||||||
makeSelectClaimForClaimId,
|
|
||||||
} from 'redux/selectors/claims';
|
} from 'redux/selectors/claims';
|
||||||
|
|
||||||
import { doFetchTxoPage } from 'redux/actions/wallet';
|
import { doFetchTxoPage } from 'redux/actions/wallet';
|
||||||
|
@ -21,7 +19,6 @@ import { batchActions } from 'util/batch-actions';
|
||||||
import { createNormalizedClaimSearchKey } from 'util/claim';
|
import { createNormalizedClaimSearchKey } from 'util/claim';
|
||||||
import { PAGE_SIZE } from 'constants/claim';
|
import { PAGE_SIZE } from 'constants/claim';
|
||||||
import {
|
import {
|
||||||
makeSelectEditedCollectionForId,
|
|
||||||
selectPendingCollections,
|
selectPendingCollections,
|
||||||
} from 'redux/selectors/collections';
|
} from 'redux/selectors/collections';
|
||||||
import {
|
import {
|
||||||
|
@ -30,8 +27,6 @@ import {
|
||||||
doCollectionDelete,
|
doCollectionDelete,
|
||||||
} from 'redux/actions/collections';
|
} from 'redux/actions/collections';
|
||||||
|
|
||||||
type ResolveEntries = Array<[string, GenericClaim]>;
|
|
||||||
|
|
||||||
export function doResolveUris(
|
export function doResolveUris(
|
||||||
uris: Array<string>,
|
uris: Array<string>,
|
||||||
returnCachedClaims: boolean = false,
|
returnCachedClaims: boolean = false,
|
||||||
|
@ -79,9 +74,8 @@ export function doResolveUris(
|
||||||
const collectionIds: Array<string> = [];
|
const collectionIds: Array<string> = [];
|
||||||
|
|
||||||
return Lbry.resolve({ urls: urisToResolve, ...options }).then(
|
return Lbry.resolve({ urls: urisToResolve, ...options }).then(
|
||||||
async (result: ResolveResponse) => {
|
async(result: ResolveResponse) => {
|
||||||
let repostedResults = {};
|
let repostedResults = {};
|
||||||
const collectionClaimIdsToResolve = [];
|
|
||||||
const repostsToResolve = [];
|
const repostsToResolve = [];
|
||||||
const fallbackResolveInfo = {
|
const fallbackResolveInfo = {
|
||||||
stream: null,
|
stream: null,
|
||||||
|
@ -518,7 +512,6 @@ export function doUpdateChannel(params: any, cb: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// we'll need to remove these once we add locations/channels to channel page edit/create options
|
// we'll need to remove these once we add locations/channels to channel page edit/create options
|
||||||
|
|
||||||
if (channelClaim && channelClaim.value && channelClaim.value.locations) {
|
if (channelClaim && channelClaim.value && channelClaim.value.locations) {
|
||||||
updateParams.locations = channelClaim.value.locations;
|
updateParams.locations = channelClaim.value.locations;
|
||||||
}
|
}
|
||||||
|
@ -556,7 +549,7 @@ export function doImportChannel(certificate: string) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return Lbry.channel_import({ channel_data: certificate })
|
return Lbry.channel_import({ channel_data: certificate })
|
||||||
.then((result: string) => {
|
.then(() => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.IMPORT_CHANNEL_COMPLETED,
|
type: ACTIONS.IMPORT_CHANNEL_COMPLETED,
|
||||||
});
|
});
|
||||||
|
@ -653,7 +646,7 @@ export function doClaimSearch(
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
const query = createNormalizedClaimSearchKey(options);
|
const query = createNormalizedClaimSearchKey(options);
|
||||||
return async (dispatch: Dispatch) => {
|
return async(dispatch: Dispatch) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.CLAIM_SEARCH_STARTED,
|
type: ACTIONS.CLAIM_SEARCH_STARTED,
|
||||||
data: { query: query },
|
data: { query: query },
|
||||||
|
|
Loading…
Reference in a new issue