remove default ws disconnected notification

This commit is contained in:
Natsuki Kaede 2024-04-20 22:14:06 +08:00
parent 7fe6b57591
commit 0c3d33fe77
2 changed files with 2 additions and 1 deletions

View file

@ -166,6 +166,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
<MkSelect v-model="serverDisconnectedBehavior">
<template #label>{{ i18n.ts.whenServerDisconnected }}</template>
<option :value="null">Ignore</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

@ -205,7 +205,7 @@ export const defaultStore = markRaw(new Storage('base', {
},
serverDisconnectedBehavior: {
where: 'device',
default: 'quiet' as 'quiet' | 'reload' | 'dialog',
default: null as null | 'quiet' | 'reload' | 'dialog',
},
nsfw: {
where: 'device',