move refresh-required options to their own section

This commit is contained in:
notfire 2025-04-01 18:04:20 -04:00
parent 698a13b28c
commit b819f30022
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16
5 changed files with 48 additions and 18 deletions

View file

@ -162,6 +162,10 @@ const GeneralTab = {
if (confirm(this.$t('settings.settings_profile_delete_confirm'))) {
this.$store.dispatch('deleteSettingsProfile', name)
}
},
checkAutoReload () {
if (this.$store.getters.mergedConfig.autoRefreshOnRequired)
location.reload()
}
}
}

View file

@ -285,22 +285,6 @@
{{ $t('settings.search_pagination_limit') }}
</IntegerSetting>
</li>
<li>
<BooleanSetting
path="dedupeBoosts"
expert="1"
>
{{ $t('settings.dedupe_boosts') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="showFaviconBadge"
expert="1"
>
{{ $t('settings.show_favicon_badge') }}
</BooleanSetting>
</li>
<li>
<h3>{{ $t('settings.columns') }}</h3>
</li>
@ -723,6 +707,43 @@
</li>
</ul>
</div>
<div
v-if="expertLevel > 0"
>
<div class="setting-item">
<h2>{{ $t('settings.requires_refresh') }}</h2>
<small>{{ $t('settings.requires_refresh_exp') }}</small>
<ul class="setting-list">
<li>
<BooleanSetting
path="autoRefreshOnRequired"
expert="1"
>
{{ $t('settings.auto_refresh_on_required') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="dedupeBoosts"
expert="1"
@click="checkAutoReload"
>
{{ $t('settings.dedupe_boosts') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="showFaviconBadge"
expert="1"
@click="checkAutoReload"
>
{{ $t('settings.show_favicon_badge') }}
</BooleanSetting>
</li>
</ul>
</div>
</div>
<div
v-if="this.$store.getters.mergedConfig.sillyFeatures"
>

View file

@ -480,6 +480,7 @@
"app_name": "App name",
"attachmentRadius": "Attachments",
"attachments": "Attachments",
"auto_refresh_on_required": "Automatically refresh when one of the below options are changed",
"autohide_floating_post_button": "Automatically hide New Post button (mobile)",
"avatar": "Avatar",
"avatarAltRadius": "Avatars (notifications)",
@ -541,7 +542,7 @@
"current_mascot": "Your current mascot",
"current_password": "Current password",
"data_import_export_tab": "Data import / export",
"dedupe_boosts": "Deduplicate boosts on the timeline (requires refresh/re-fetch)",
"dedupe_boosts": "Deduplicate boosts on the timeline",
"default_vis": "Default visibility scope",
"delete_account": "Delete account",
"delete_account_description": "Permanently delete your data and deactivate your account.",
@ -735,6 +736,8 @@
"reply_visibility_following_short": "Show replies to my follows",
"reply_visibility_self": "Only show replies directed at me",
"reply_visibility_self_short": "Show replies to self only",
"requires_refresh": "Requires a page refresh",
"requires_refresh_exp": "The below options (except the first) require either a page refresh or some content before their effects are visible. If you'd like to disable automatically refreshing the page when changing these options then toggle the first option.",
"reset_avatar": "Reset avatar",
"reset_avatar_confirm": "Do you really want to reset the avatar?",
"reset_background_confirm": "Do you really want to reset the background?",
@ -775,7 +778,7 @@
"settings_profiles_show": "Show all settings profiles",
"settings_profiles_unshow": "Hide all settings profiles",
"show_admin_badge": "Show \"Admin\" badge in my profile",
"show_favicon_badge": "Show a badge on the page's favicon when there are unread notifications (requires refresh)",
"show_favicon_badge": "Show a badge on the page's favicon when there are unread notifications",
"show_moderator_badge": "Show \"Moderator\" badge in my profile",
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",

View file

@ -129,6 +129,7 @@ export const defaultState = {
recurseSearchLimit: 100,
dedupeBoosts: true,
showFaviconBadge: true,
autoRefreshOnRequired: true,
renderMisskeyMarkdown: undefined,
renderMfmOnHover: undefined, // instance default
conversationDisplay: undefined, // instance default

View file

@ -85,6 +85,7 @@ const defaultState = {
recurseSearchLimit: 100,
dedupeBoosts: true,
showFaviconBadge: true,
autoRefreshOnRequired: true,
renderMisskeyMarkdown: true,
renderMfmOnHover: false,
conversationDisplay: 'linear',