forked from mirrors/akkoma-fe
hide federated timeline by default
This commit is contained in:
parent
63071ec203
commit
d551e7f499
4 changed files with 12 additions and 1 deletions
|
@ -146,6 +146,13 @@
|
|||
{{ $t('settings.show_panel_nav_shortcuts') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
<li>
|
||||
<BooleanSetting
|
||||
path="federatedTimelineVisible"
|
||||
>
|
||||
{{ $t('settings.show_federated_timeline') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
<li>
|
||||
<BooleanSetting
|
||||
path="showWiderShortcuts"
|
||||
|
|
|
@ -754,6 +754,7 @@
|
|||
"show_moderator_badge": "Show \"Moderator\" badge in my profile",
|
||||
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
|
||||
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
||||
"show_federated_timeline": "Show the \"Known Network\" tab",
|
||||
"show_scrollbars": "Show side column's scrollbars",
|
||||
"show_page_backgrounds": "Show page-specific backgrounds, e.g. for user profiles",
|
||||
"show_wider_shortcuts": "Show wider gap between top panel shortcuts",
|
||||
|
|
|
@ -11,7 +11,9 @@ const currentUserOrTimelineVisibleUnauthenticated = (state, timeline) => (
|
|||
const federatedTimelineAvailable = (state) => state.instance.federatedTimelineAvailable;
|
||||
|
||||
export const federatedTimelineVisible = (state) => (
|
||||
federatedTimelineAvailable(state) && currentUserOrTimelineVisibleUnauthenticated(state, 'federated')
|
||||
federatedTimelineAvailable(state) &&
|
||||
currentUserOrTimelineVisibleUnauthenticated(state, 'federated') &&
|
||||
state.config.federatedTimelineVisible
|
||||
);
|
||||
|
||||
export const publicTimelineVisible = (state) => (
|
||||
|
|
|
@ -123,6 +123,7 @@ export const defaultState = {
|
|||
userProfileDefaultTab: 'statuses',
|
||||
useBlurhash: true,
|
||||
overrideInstanceWallpaper: false,
|
||||
federatedTimelineVisible: false,
|
||||
}
|
||||
|
||||
// caching the instance default properties
|
||||
|
|
Loading…
Reference in a new issue