Make new top nav links optional

This commit is contained in:
eris 2022-08-07 05:20:38 +00:00
parent 7751d9b62b
commit 0b0e49606a
6 changed files with 15 additions and 3 deletions

View file

@ -79,6 +79,10 @@ export default {
return this.$store.getters.mergedConfig
},
sitename () { return this.$store.state.instance.name },
showNavShortcuts () {
return this.mergedConfig.showNavShortcuts
},
hideSiteFavicon () {
return this.mergedConfig.hideSiteFavicon
},

View file

@ -25,7 +25,7 @@
</span>
</router-link>
<div
v-if="currentUser || !privateMode"
v-if="(currentUser || !privateMode) && showNavShortcuts"
class="nav-items left"
>
<router-link
@ -97,7 +97,7 @@
@click.stop
/>
<div
v-if="currentUser || !privateMode"
v-if="(currentUser || !privateMode) && showNavShortcuts"
class="nav-items right"
>
<router-link

View file

@ -35,6 +35,11 @@
{{ $t('settings.hide_site_name') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting path="showNavShortcuts">
{{ $t('settings.show_nav_shortcuts') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting path="stopGifs">
{{ $t('settings.stop_gifs') }}

View file

@ -425,9 +425,9 @@
"hide_shoutbox": "Hide instance shoutbox",
"right_sidebar": "Reverse order of columns",
"always_show_post_button": "Always show floating New Post button",
"hide_threads_with_blocked_users": "Hide threads tagging blocked users",
"hide_site_favicon": "Hide instance favicon in top panel",
"hide_site_name": "Hide instance name in top panel",
"hide_threads_with_blocked_users": "Hide threads mentioning blocked users",
"hide_user_stats": "Hide user statistics (e.g. the number of followers)",
"hide_wallpaper": "Hide instance wallpaper",
"preload_images": "Preload images",
@ -545,6 +545,7 @@
"conversation_display": "Conversation display style",
"conversation_display_tree": "Tree-style",
"disable_sticky_headers": "Don't stick column headers to top of the screen",
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
"show_scrollbars": "Show side column's scrollbars",
"third_column_mode": "When there's enough space, show third column containing",
"third_column_mode_none": "Don't show third column at all",

View file

@ -36,6 +36,7 @@ export const defaultState = {
muteBotStatuses: undefined, // instance default
collapseMessageWithSubject: true, // instance default
padEmoji: true,
showNavShortcuts: undefined, // instance default
hideSiteFavicon: undefined, // instance default
hideSiteName: undefined, // instance default
hideAttachments: false,

View file

@ -51,6 +51,7 @@ const defaultState = {
scopeCopy: true,
showFeaturesPanel: true,
showInstanceSpecificPanel: false,
showNavShortcuts: true,
sidebarRight: false,
subjectLineBehavior: 'email',
theme: 'pleroma-dark',