diff --git a/app/javascript/glitch/locales/en.json b/app/javascript/glitch/locales/en.json index 7ec381de1..18e412356 100644 --- a/app/javascript/glitch/locales/en.json +++ b/app/javascript/glitch/locales/en.json @@ -5,6 +5,7 @@ "layout.desktop": "Desktop", "layout.mobile": "Mobile", "navigation_bar.app_settings": "App settings", + "getting_started.onboarding": "Show me around", "onboarding.page_one.federation": "{domain} is an 'instance' of Mastodon. Mastodon is a network of independent servers joining up to make one larger social network. We call these servers instances.", "onboarding.page_one.welcome": "Welcome to {domain}!", "onboarding.page_six.github": "{domain} runs on Glitchsoc. Glitchsoc is a friendly {fork} of {Mastodon}, and is compatible with any Mastodon instance or app. Glitchsoc is entirely free and open-source. You can report bugs, request features, or contribute to the code on {github}.", diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js index 0027783b4..000e414fe 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -150,7 +150,7 @@ export default class ComposeForm extends ImmutablePureComponent { render () { const { intl, onPaste, showSearch } = this.props; const disabled = this.props.is_submitting; - const maybeEye = this.props.advanced_options.get('do_not_federate') ? ' 👁️' : ''; + const maybeEye = (this.props.advanced_options && this.props.advanced_options.do_not_federate) ? ' 👁️' : ''; const text = [this.props.spoiler_text, countableText(this.props.text), maybeEye].join(''); let publishText = ''; diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js index 684612b1c..2efab66f5 100644 --- a/app/javascript/mastodon/features/getting_started/index.js +++ b/app/javascript/mastodon/features/getting_started/index.js @@ -25,6 +25,7 @@ const messages = defineMessages({ blocks: { id: 'navigation_bar.blocks', defaultMessage: 'Blocked users' }, mutes: { id: 'navigation_bar.mutes', defaultMessage: 'Muted users' }, info: { id: 'navigation_bar.info', defaultMessage: 'Extended information' }, + show_me_around: { id: 'getting_started.onboarding', defaultMessage: 'Show me around' }, }); const mapStateToProps = state => ({ @@ -48,6 +49,11 @@ export default class GettingStarted extends ImmutablePureComponent { this.props.dispatch(openModal('SETTINGS', {})); } + openOnboardingModal = (e) => { + e.preventDefault(); + this.props.dispatch(openModal('ONBOARDING')); + } + render () { const { intl, me, columns, multiColumn } = this.props; @@ -92,6 +98,7 @@ export default class GettingStarted extends ImmutablePureComponent { {navItems} + @@ -100,13 +107,24 @@ export default class GettingStarted extends ImmutablePureComponent {

- + + +  •  + + +  •  + + +

glitch-soc/mastodon, Mastodon: Mastodon }} + values={{ + github: glitch-soc/mastodon, + Mastodon: Mastodon, + }} />

diff --git a/app/javascript/mastodon/features/ui/components/onboarding_modal.js b/app/javascript/mastodon/features/ui/components/onboarding_modal.js index 1b1cb00da..0c872f40d 100644 --- a/app/javascript/mastodon/features/ui/components/onboarding_modal.js +++ b/app/javascript/mastodon/features/ui/components/onboarding_modal.js @@ -44,7 +44,7 @@ const PageTwo = ({ me }) => (
- +
( />
- +