1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-31 14:29:28 -05:00

frontend: tweak preferences

This commit is contained in:
FLY_MC 2025-03-28 03:24:05 +08:00
parent 2aee5dd8a7
commit 8b642a5ee7
3 changed files with 4 additions and 3 deletions
packages/frontend/src
pages/settings
preferences
store.ts

View file

@ -376,6 +376,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<option value="rightTop"><i class="ti ti-align-box-right-top"></i> {{ i18n.ts.rightTop }}</option>
<option value="leftBottom"><i class="ti ti-align-box-left-bottom"></i> {{ i18n.ts.leftBottom }}</option>
<option value="rightBottom"><i class="ti ti-align-box-right-bottom"></i> {{ i18n.ts.rightBottom }}</option>
<option value="close"><i class="ti ti-x"></i> {{ i18n.ts.close }}</option>
</MkRadios>
</MkPreferenceContainer>
</SearchMarker>
@ -512,7 +513,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkPreferenceContainer k="serverDisconnectedBehavior">
<MkSelect v-model="serverDisconnectedBehavior">
<template #label><SearchLabel>{{ i18n.ts.whenServerDisconnected }}</SearchLabel></template>
<option value="doNothing">{{ i18n.ts.doNothing }}</option>
<option value="ignore">{{ i18n.ts.doNothing }}</option>
<option value="reload">{{ i18n.ts._serverDisconnectedBehavior.reload }}</option>
<option value="dialog">{{ i18n.ts._serverDisconnectedBehavior.dialog }}</option>
<option value="quiet">{{ i18n.ts._serverDisconnectedBehavior.quiet }}</option>

View file

@ -157,7 +157,7 @@ export const PREF_DEF = {
}[],
},
serverDisconnectedBehavior: {
default: 'doNothing' as 'doNothing' | 'quiet' | 'reload' | 'dialog',
default: 'ignore' as 'ignore' | 'quiet' | 'reload' | 'dialog',
},
nsfw: {
default: 'respect' as 'respect' | 'force' | 'ignore',

View file

@ -212,7 +212,7 @@ export const store = markRaw(new Pizzax('base', {
},
serverDisconnectedBehavior: {
where: 'device',
default: 'doNothing' as 'doNothing' | 'quiet' | 'reload' | 'dialog',
default: 'ignore' as 'ignore' | 'quiet' | 'reload' | 'dialog',
},
nsfw: {
where: 'device',