Option to fully disable connection lost

This commit is contained in:
ThatOneCalculator 2022-07-19 20:15:08 -07:00
parent a977285400
commit 69514857dc
4 changed files with 4 additions and 1 deletions

View File

@ -1042,6 +1042,7 @@ _serverDisconnectedBehavior:
reload: "Automatically reload"
dialog: "Show warning dialog"
quiet: "Show unobtrusive warning"
nothing: "Do nothing"
_channel:
create: "Create channel"
edit: "Edit channel"

View File

@ -1059,6 +1059,7 @@ _serverDisconnectedBehavior:
reload: "自動でリロード"
dialog: "ダイアログで警告"
quiet: "控えめに警告"
nothing: "何も起こらない"
_channel:
create: "チャンネルを作成"

View File

@ -35,6 +35,7 @@
<option value="reload">{{ i18n.ts._serverDisconnectedBehavior.reload }}</option>
<option value="dialog">{{ i18n.ts._serverDisconnectedBehavior.dialog }}</option>
<option value="quiet">{{ i18n.ts._serverDisconnectedBehavior.quiet }}</option>
<option value="nothing">{{ i18n.ts._serverDisconnectedBehavior.nothing }}</option>
</FormSelect>
</FormSection>

View File

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