Collections #383

Merged
jessopb merged 20 commits from collections into master 2021-06-08 17:51:49 +02:00
3 changed files with 10 additions and 10 deletions
Showing only changes of commit dc19ecb77e - Show all commits

10
dist/bundle.es.js vendored
View file

@ -1044,7 +1044,7 @@ const COLLECTION_ID = 'colid';
const COLLECTION_INDEX = 'colindex';
const COL_TYPE_PLAYLIST = 'playlist';
const COL_TYPE_CHANNELS = 'channelCollection';
const COL_TYPE_CHANNELS = 'channelList';
const WATCH_LATER_ID = 'watchlater';
const FAVORITES_ID = 'favorites';
@ -4397,7 +4397,7 @@ function doCollectionPublish(options, localId) {
}));
dispatch(doCheckPendingClaims());
dispatch(doFetchCollectionListMine(1, 10));
return collectionClaim;
return resolve(collectionClaim);
}
function failure(error) {
@ -4409,7 +4409,7 @@ function doCollectionPublish(options, localId) {
});
}
lbryProxy.collection_create(params).then(success, failure);
return lbryProxy.collection_create(params).then(success, failure);
});
};
}
@ -4463,7 +4463,7 @@ function doCollectionPublishUpdate(options) {
});
dispatch(doCheckPendingClaims());
dispatch(doFetchCollectionListMine(1, 10));
return collectionClaim;
return resolve(collectionClaim);
}
function failure(error) {
@ -4475,7 +4475,7 @@ function doCollectionPublishUpdate(options) {
});
}
lbryProxy.collection_update(updateParams).then(success, failure);
return lbryProxy.collection_update(updateParams).then(success, failure);
});
};
}

View file

@ -2,7 +2,7 @@ export const COLLECTION_ID = 'colid';
export const COLLECTION_INDEX = 'colindex';
export const COL_TYPE_PLAYLIST = 'playlist';
export const COL_TYPE_CHANNELS = 'channelCollection';
export const COL_TYPE_CHANNELS = 'channelList';
export const WATCH_LATER_ID = 'watchlater';
export const FAVORITES_ID = 'favorites';

View file

@ -816,7 +816,7 @@ export function doCollectionPublish(
);
dispatch(doCheckPendingClaims());
dispatch(doFetchCollectionListMine(1, 10));
return collectionClaim;
return resolve(collectionClaim);
}
function failure(error) {
@ -828,7 +828,7 @@ export function doCollectionPublish(
});
}
Lbry.collection_create(params).then(success, failure);
return Lbry.collection_create(params).then(success, failure);
});
};
}
@ -903,7 +903,7 @@ export function doCollectionPublishUpdate(options: {
});
dispatch(doCheckPendingClaims());
dispatch(doFetchCollectionListMine(1, 10));
return collectionClaim;
return resolve(collectionClaim);
}
function failure(error) {
@ -915,7 +915,7 @@ export function doCollectionPublishUpdate(options: {
});
}
Lbry.collection_update(updateParams).then(success, failure);
return Lbry.collection_update(updateParams).then(success, failure);
});
};
}