diff --git a/src/page/channelCreator/view.js b/src/page/channelCreator/view.js index 1f0e948..0047264 100644 --- a/src/page/channelCreator/view.js +++ b/src/page/channelCreator/view.js @@ -562,8 +562,8 @@ export default class ChannelCreator extends React.PureComponent { newChannelBidError: '', createChannelError: undefined, showCreateChannel: false, - thumbnailUrl: null, - coverImageUrl: null, + thumbnailUrl: '', + coverImageUrl: '', avatarImagePickerOpen: false, coverImagePickerOpen: false, @@ -914,7 +914,7 @@ export default class ChannelCreator extends React.PureComponent { @ this.handleNewChannelNameChange(value, true)} @@ -924,10 +924,15 @@ export default class ChannelCreator extends React.PureComponent { onBlur={() => this.setState({ channelNameFocused: false })} /> + s {newChannelNameError.length > 0 && ( {newChannelNameError} )} + {editMode && ( + The channel name cannot be changed while editing. + )} + Deposit 0) { - notify({ message: syncApplyErrorMessage, isError: true }); + notify({ message: syncApplyErrorMessage, syncApplyStarted: false, isError: true }); this.setState({ showBottomContainer: true }); } else { // password successfully verified @@ -236,6 +235,7 @@ class FirstRunScreen extends React.PureComponent { closeFinalPage() { // Final page. Let the app know that first run experience is completed. + this.setState({ syncApplyStarted: false }); if (NativeModules.FirstRun) { NativeModules.FirstRun.firstRunCompleted(); } diff --git a/src/page/verification/internal/sync-verify-page.js b/src/page/verification/internal/sync-verify-page.js index 8bccb37..49cbcaa 100644 --- a/src/page/verification/internal/sync-verify-page.js +++ b/src/page/verification/internal/sync-verify-page.js @@ -68,27 +68,37 @@ class SyncVerifyPage extends React.PureComponent { ); } setDefaultAccount( - () => { - setClientSetting(Constants.SETTING_DEVICE_WALLET_SYNCED, true); - - // unlock the wallet - Lbry.account_unlock({ password: this.state.password ? this.state.password : '' }) - .then(() => navigation.goBack()) - .catch(err => - notify({ message: 'The wallet could not be unlocked at this time. Please restart the app.' }) - ); - }, + () => this.finishSync(true), err => { - notify({ - message: - 'The account restore operation could not be completed successfully. Please restart the app and try again.', - }); + // fail silently and still finish + this.finishSync(); } ); } } } + finishSync = (notifyUnlockFailed = false) => { + const { navigation, notify, setClientSetting } = this.props; + + setClientSetting(Constants.SETTING_DEVICE_WALLET_SYNCED, true); + + // unlock the wallet (if locked) + Lbry.status().then(status => { + if (status.wallet.is_locked) { + Lbry.account_unlock({ password: this.state.password ? this.state.password : '' }) + .then(() => navigation.goBack()) + .catch(err => { + if (notifyUnlockFailed) { + notify({ message: 'The wallet could not be unlocked at this time. Please restart the app.' }); + } + }); + } else { + navigation.goBack(); + } + }); + }; + handleChangeText = text => { // save the value to the state email const { onPasswordChanged } = this.props; diff --git a/src/styles/channelCreator.js b/src/styles/channelCreator.js index b8e5dc7..56cb637 100644 --- a/src/styles/channelCreator.js +++ b/src/styles/channelCreator.js @@ -45,6 +45,7 @@ const channelCreatorStyle = StyleSheet.create({ helpText: { fontFamily: 'Inter-UI-Regular', fontSize: 12, + color: Colors.DescriptionGrey, }, channelTitleInput: { marginBottom: 4, diff --git a/src/styles/publish.js b/src/styles/publish.js index 0967c55..ceb6fd4 100644 --- a/src/styles/publish.js +++ b/src/styles/publish.js @@ -436,6 +436,11 @@ const publishStyle = StyleSheet.create({ fontSize: 14, color: Colors.DescriptionGrey, }, + helpText: { + fontFamily: 'Inter-UI-Regular', + fontSize: 12, + color: Colors.DescriptionGrey, + }, publishesFooter: { marginTop: 2, marginLeft: 16,