Make new top nav links optional

This commit is contained in:
eris 2022-08-07 05:20:38 +00:00 committed by Sam Therapy
parent 78382a27ea
commit 20064ee6f7
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
6 changed files with 14 additions and 3 deletions

View file

@ -84,6 +84,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
@ -98,7 +98,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

@ -496,7 +496,6 @@
"hide_all_muted_posts": "Hide muted posts",
"max_thumbnails": "Maximum amount of thumbnails per post (empty = no limit)",
"hide_isp": "Hide instance-specific panel",
"show_third_column": "Move Notifications to a seperate column",
"hide_shoutbox": "Hide instance frothbox",
"compact_nav_panel": "Compact navigation panel",
"compact_user_panel": "Compact user panel",
@ -579,6 +578,7 @@
"hide_followers_count_description": "Don't show follower count",
"show_admin_badge": "Show \"Admin\" badge in my profile",
"show_moderator_badge": "Show \"Moderator\" badge in my profile",
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
"nsfw_clickthrough": "Hide sensitive/NSFW media",
"oauth_tokens": "OAuth tokens",
"token": "Token",

View file

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

View file

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