224f10663d
## Ticket 426 ## Issue Currently, we check if we have any existing claims with the same name when uploading, i.e. "lbry://<name>". It does not include claims that you are still uploading, so you might end up with duplicate claims. In the ticket, there is also the issue of 2 uploads sharing the same slot, causing the progress indicator to jumpy between the uploads. That has been fixed by using a guid instead of using `name`. ## Aside I think there is another request to allow the same name but on different channel ... next time, next time ....
31 lines
1.2 KiB
JavaScript
31 lines
1.2 KiB
JavaScript
import { connect } from 'react-redux';
|
|
import { doUpdatePublishForm, doPrepareEdit } from 'redux/actions/publish';
|
|
import {
|
|
makeSelectPublishFormValue,
|
|
selectIsStillEditing,
|
|
selectMyClaimForUri,
|
|
selectTakeOverAmount,
|
|
selectCurrentUploads,
|
|
} from 'redux/selectors/publish';
|
|
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
|
|
import { doSetActiveChannel } from 'redux/actions/app';
|
|
import PublishPage from './view';
|
|
|
|
const select = (state) => ({
|
|
name: makeSelectPublishFormValue('name')(state),
|
|
uri: makeSelectPublishFormValue('uri')(state),
|
|
isStillEditing: selectIsStillEditing(state),
|
|
myClaimForUri: selectMyClaimForUri(state),
|
|
currentUploads: selectCurrentUploads(state),
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
|
incognito: selectIncognito(state),
|
|
amountNeededForTakeover: selectTakeOverAmount(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
|
prepareEdit: (claim, uri) => dispatch(doPrepareEdit(claim, uri)),
|
|
setActiveChannel: (claimId) => dispatch(doSetActiveChannel(claimId)),
|
|
});
|
|
|
|
export default connect(select, perform)(PublishPage);
|