mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-05-11 06:59:14 +08:00
Make new top nav links optional
This commit is contained in:
parent
a587d85324
commit
b91ae67bbb
6 changed files with 16 additions and 2 deletions
|
@ -77,6 +77,10 @@ export default {
|
||||||
return this.$store.getters.mergedConfig
|
return this.$store.getters.mergedConfig
|
||||||
},
|
},
|
||||||
sitename () { return this.$store.state.instance.name },
|
sitename () { return this.$store.state.instance.name },
|
||||||
|
showNavShortcuts () {
|
||||||
|
return this.mergedConfig.showNavShortcuts
|
||||||
|
},
|
||||||
|
|
||||||
hideSiteFavicon () {
|
hideSiteFavicon () {
|
||||||
return this.mergedConfig.hideSiteFavicon
|
return this.mergedConfig.hideSiteFavicon
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</span>
|
</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div
|
<div
|
||||||
v-if="currentUser || !privateMode"
|
v-if="(currentUser || !privateMode) && showNavShortcuts"
|
||||||
class="nav-items left"
|
class="nav-items left"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
@click.stop
|
@click.stop
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
v-if="currentUser || !privateMode"
|
v-if="(currentUser || !privateMode) && showNavShortcuts"
|
||||||
class="nav-items right"
|
class="nav-items right"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
|
|
|
@ -35,6 +35,11 @@
|
||||||
{{ $t('settings.hide_site_name') }}
|
{{ $t('settings.hide_site_name') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="showNavShortcuts">
|
||||||
|
{{ $t('settings.show_nav_shortcuts') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="stopGifs">
|
<BooleanSetting path="stopGifs">
|
||||||
{{ $t('settings.stop_gifs') }}
|
{{ $t('settings.stop_gifs') }}
|
||||||
|
|
|
@ -459,6 +459,8 @@
|
||||||
"hide_muted_threads": "Hide muted threads",
|
"hide_muted_threads": "Hide muted threads",
|
||||||
"hide_post_stats": "Hide post statistics (e.g. the number of favorites)",
|
"hide_post_stats": "Hide post statistics (e.g. the number of favorites)",
|
||||||
"hide_shoutbox": "Hide instance shoutbox",
|
"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_threads_with_blocked_users": "Hide threads mentioning blocked users",
|
||||||
"hide_user_stats": "Hide user statistics (e.g. the number of followers)",
|
"hide_user_stats": "Hide user statistics (e.g. the number of followers)",
|
||||||
"hide_wallpaper": "Hide instance wallpaper",
|
"hide_wallpaper": "Hide instance wallpaper",
|
||||||
|
@ -610,6 +612,7 @@
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"show_admin_badge": "Show \"Admin\" badge in my profile",
|
"show_admin_badge": "Show \"Admin\" badge in my profile",
|
||||||
"show_moderator_badge": "Show \"Moderator\" 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_scrollbars": "Show side column's scrollbars",
|
||||||
"show_yous": "Show (You)s",
|
"show_yous": "Show (You)s",
|
||||||
"stop_gifs": "Pause animated images until you hover on them",
|
"stop_gifs": "Pause animated images until you hover on them",
|
||||||
|
|
|
@ -36,6 +36,7 @@ export const defaultState = {
|
||||||
muteBotStatuses: undefined, // instance default
|
muteBotStatuses: undefined, // instance default
|
||||||
collapseMessageWithSubject: undefined, // instance default
|
collapseMessageWithSubject: undefined, // instance default
|
||||||
padEmoji: true,
|
padEmoji: true,
|
||||||
|
showNavShortcuts: undefined, // instance default
|
||||||
hideSiteFavicon: undefined, // instance default
|
hideSiteFavicon: undefined, // instance default
|
||||||
hideSiteName: undefined, // instance default
|
hideSiteName: undefined, // instance default
|
||||||
hideAttachments: false,
|
hideAttachments: false,
|
||||||
|
|
|
@ -51,6 +51,7 @@ const defaultState = {
|
||||||
scopeCopy: true,
|
scopeCopy: true,
|
||||||
showFeaturesPanel: true,
|
showFeaturesPanel: true,
|
||||||
showInstanceSpecificPanel: false,
|
showInstanceSpecificPanel: false,
|
||||||
|
showNavShortcuts: true,
|
||||||
sidebarRight: false,
|
sidebarRight: false,
|
||||||
subjectLineBehavior: 'email',
|
subjectLineBehavior: 'email',
|
||||||
theme: 'pleroma-dark',
|
theme: 'pleroma-dark',
|
||||||
|
|
Loading…
Reference in a new issue