From bf5b2370e2107606e7d4cfed3de349e61c589d10 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 24 Feb 2021 14:02:19 +0800 Subject: [PATCH] Restore 'duplicate claim URL' msg while waiting for 3704 ## Issue 5575: Show "URL already used" msg when publishing Seems like `uri` just got accidentally removed from db87125d --- ui/component/publishName/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/component/publishName/index.js b/ui/component/publishName/index.js index d191e6ab4..67f5142fb 100644 --- a/ui/component/publishName/index.js +++ b/ui/component/publishName/index.js @@ -10,18 +10,19 @@ import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app'; import { doSetActiveChannel } from 'redux/actions/app'; import PublishPage from './view'; -const select = state => ({ +const select = (state) => ({ name: makeSelectPublishFormValue('name')(state), + uri: makeSelectPublishFormValue('uri')(state), isStillEditing: selectIsStillEditing(state), myClaimForUri: selectMyClaimForUri(state), activeChannelClaim: selectActiveChannelClaim(state), incognito: selectIncognito(state), }); -const perform = dispatch => ({ - updatePublishForm: value => dispatch(doUpdatePublishForm(value)), +const perform = (dispatch) => ({ + updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)), prepareEdit: (claim, uri) => dispatch(doPrepareEdit(claim, uri)), - setActiveChannel: claimId => dispatch(doSetActiveChannel(claimId)), + setActiveChannel: (claimId) => dispatch(doSetActiveChannel(claimId)), }); export default connect(select, perform)(PublishPage);