diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js
index d9838e1c73..02e1bbba50 100644
--- a/app/javascript/mastodon/features/getting_started/index.js
+++ b/app/javascript/mastodon/features/getting_started/index.js
@@ -40,6 +40,7 @@ const messages = defineMessages({
const mapStateToProps = state => ({
myAccount: state.getIn(['accounts', me]),
+ columns: state.getIn(['settings', 'columns']),
unreadFollowRequests: state.getIn(['user_lists', 'follow_requests', 'items'], ImmutableList()).size,
});
@@ -89,60 +90,66 @@ class GettingStarted extends ImmutablePureComponent {
}
render () {
- const { intl, myAccount, multiColumn, unreadFollowRequests } = this.props;
+ const { intl, myAccount, columns, multiColumn, unreadFollowRequests } = this.props;
const navItems = [];
- let i = 1;
let height = (multiColumn) ? 0 : 60;
if (multiColumn) {
navItems.push(
- ,
- ,
- ,
+ ,
+ ,
+ ,
);
height += 34 + 48*2;
if (profile_directory) {
navItems.push(
- ,
+ ,
);
height += 48;
}
navItems.push(
- ,
+ ,
);
height += 34;
} else if (profile_directory) {
navItems.push(
- ,
+ ,
);
height += 48;
}
+ if (multiColumn && !columns.find(item => item.get('id') === 'HOME')) {
+ navItems.push(
+ ,
+ );
+ height += 48;
+ }
+
navItems.push(
- ,
- ,
- ,
- ,
+ ,
+ ,
+ ,
+ ,
);
height += 48*4;
if (myAccount.get('locked') || unreadFollowRequests > 0) {
- navItems.push();
+ navItems.push();
height += 48;
}
if (!multiColumn) {
navItems.push(
- ,
- ,
+ ,
+ ,
);
height += 34 + 48;