Add an option to expand the dropdown

and make it the default

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-02-06 11:52:59 -06:00
parent f1ea4aceff
commit 5536357424
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
5 changed files with 12 additions and 2 deletions

View file

@ -39,7 +39,7 @@ const NavPanel = {
},
data () {
return {
showTimelines: true
showTimelines: this.$store.getters.mergedConfig.showTimelines
}
},
methods: {

View file

@ -78,6 +78,13 @@
{{ $t('settings.hide_shoutbox') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="showTimelines"
>
{{ $t('settings.showTimelines') }}
</BooleanSetting>
</li>
</ul>
</div>
<div class="setting-item">

View file

@ -508,6 +508,7 @@
"greentext": "Meme arrows",
"conversation_view": "Conversation View",
"mentions": "Mentions",
"showTimelines": "Expand timeline options by default",
"show_yous": "Show (You)s",
"notifications": "Notifications",
"notification_setting_filters": "Filters",

View file

@ -91,7 +91,8 @@ export const defaultState = {
sensitiveByDefault: undefined, // instance default
conversationDisplay: undefined, // instance default
conversationOtherRepliesButton: undefined, // instance default
maxDepthInThread: 18
maxDepthInThread: 18,
showTimelines: undefined // instance default
}
// caching the instance default properties

View file

@ -56,6 +56,7 @@ const defaultState = {
conversationDisplay: 'simple_tree',
conversationOtherRepliesButton: 'below',
maxDepthInThread: 6,
showTimelines: true,
// Nasty stuff
customEmoji: [],