move refresh-required options to their own section
This commit is contained in:
parent
698a13b28c
commit
b819f30022
5 changed files with 48 additions and 18 deletions
|
@ -162,6 +162,10 @@ const GeneralTab = {
|
||||||
if (confirm(this.$t('settings.settings_profile_delete_confirm'))) {
|
if (confirm(this.$t('settings.settings_profile_delete_confirm'))) {
|
||||||
this.$store.dispatch('deleteSettingsProfile', name)
|
this.$store.dispatch('deleteSettingsProfile', name)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
checkAutoReload () {
|
||||||
|
if (this.$store.getters.mergedConfig.autoRefreshOnRequired)
|
||||||
|
location.reload()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,22 +285,6 @@
|
||||||
{{ $t('settings.search_pagination_limit') }}
|
{{ $t('settings.search_pagination_limit') }}
|
||||||
</IntegerSetting>
|
</IntegerSetting>
|
||||||
</li>
|
</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>
|
<li>
|
||||||
<h3>{{ $t('settings.columns') }}</h3>
|
<h3>{{ $t('settings.columns') }}</h3>
|
||||||
</li>
|
</li>
|
||||||
|
@ -723,6 +707,43 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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
|
<div
|
||||||
v-if="this.$store.getters.mergedConfig.sillyFeatures"
|
v-if="this.$store.getters.mergedConfig.sillyFeatures"
|
||||||
>
|
>
|
||||||
|
|
|
@ -480,6 +480,7 @@
|
||||||
"app_name": "App name",
|
"app_name": "App name",
|
||||||
"attachmentRadius": "Attachments",
|
"attachmentRadius": "Attachments",
|
||||||
"attachments": "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)",
|
"autohide_floating_post_button": "Automatically hide New Post button (mobile)",
|
||||||
"avatar": "Avatar",
|
"avatar": "Avatar",
|
||||||
"avatarAltRadius": "Avatars (notifications)",
|
"avatarAltRadius": "Avatars (notifications)",
|
||||||
|
@ -541,7 +542,7 @@
|
||||||
"current_mascot": "Your current mascot",
|
"current_mascot": "Your current mascot",
|
||||||
"current_password": "Current password",
|
"current_password": "Current password",
|
||||||
"data_import_export_tab": "Data import / export",
|
"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",
|
"default_vis": "Default visibility scope",
|
||||||
"delete_account": "Delete account",
|
"delete_account": "Delete account",
|
||||||
"delete_account_description": "Permanently delete your data and deactivate your 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_following_short": "Show replies to my follows",
|
||||||
"reply_visibility_self": "Only show replies directed at me",
|
"reply_visibility_self": "Only show replies directed at me",
|
||||||
"reply_visibility_self_short": "Show replies to self only",
|
"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": "Reset avatar",
|
||||||
"reset_avatar_confirm": "Do you really want to reset the avatar?",
|
"reset_avatar_confirm": "Do you really want to reset the avatar?",
|
||||||
"reset_background_confirm": "Do you really want to reset the background?",
|
"reset_background_confirm": "Do you really want to reset the background?",
|
||||||
|
@ -775,7 +778,7 @@
|
||||||
"settings_profiles_show": "Show all settings profiles",
|
"settings_profiles_show": "Show all settings profiles",
|
||||||
"settings_profiles_unshow": "Hide all settings profiles",
|
"settings_profiles_unshow": "Hide all settings profiles",
|
||||||
"show_admin_badge": "Show \"Admin\" badge in my profile",
|
"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_moderator_badge": "Show \"Moderator\" badge in my profile",
|
||||||
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
|
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
|
||||||
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
||||||
|
|
|
@ -129,6 +129,7 @@ export const defaultState = {
|
||||||
recurseSearchLimit: 100,
|
recurseSearchLimit: 100,
|
||||||
dedupeBoosts: true,
|
dedupeBoosts: true,
|
||||||
showFaviconBadge: true,
|
showFaviconBadge: true,
|
||||||
|
autoRefreshOnRequired: true,
|
||||||
renderMisskeyMarkdown: undefined,
|
renderMisskeyMarkdown: undefined,
|
||||||
renderMfmOnHover: undefined, // instance default
|
renderMfmOnHover: undefined, // instance default
|
||||||
conversationDisplay: undefined, // instance default
|
conversationDisplay: undefined, // instance default
|
||||||
|
|
|
@ -85,6 +85,7 @@ const defaultState = {
|
||||||
recurseSearchLimit: 100,
|
recurseSearchLimit: 100,
|
||||||
dedupeBoosts: true,
|
dedupeBoosts: true,
|
||||||
showFaviconBadge: true,
|
showFaviconBadge: true,
|
||||||
|
autoRefreshOnRequired: true,
|
||||||
renderMisskeyMarkdown: true,
|
renderMisskeyMarkdown: true,
|
||||||
renderMfmOnHover: false,
|
renderMfmOnHover: false,
|
||||||
conversationDisplay: 'linear',
|
conversationDisplay: 'linear',
|
||||||
|
|
Loading…
Add table
Reference in a new issue