Make new top nav links optional
ci/woodpecker/pr/woodpecker Pipeline was successful Details

This commit is contained in:
eris 2022-08-07 05:20:38 +00:00
parent a587d85324
commit b91ae67bbb
6 changed files with 16 additions and 2 deletions

View File

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

@ -459,6 +459,8 @@
"hide_muted_threads": "Hide muted threads",
"hide_post_stats": "Hide post statistics (e.g. the number of favorites)",
"hide_shoutbox": "Hide instance shoutbox",
"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",
@ -610,6 +612,7 @@
"settings": "Settings",
"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",
"show_scrollbars": "Show side column's scrollbars",
"show_yous": "Show (You)s",
"stop_gifs": "Pause animated images until you hover on them",

View File

@ -36,6 +36,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
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',