From 69514857dc3e0a4d77b6da172b3fad445a3f2663 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 19 Jul 2022 20:15:08 -0700 Subject: [PATCH] Option to fully disable connection lost --- locales/en-US.yml | 1 + locales/ja-JP.yml | 1 + packages/client/src/pages/settings/general.vue | 1 + packages/client/src/store.ts | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 776ee0d00d..d5cdfa90c7 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -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" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 05006fafb2..4ac0f509cb 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1059,6 +1059,7 @@ _serverDisconnectedBehavior: reload: "自動でリロード" dialog: "ダイアログで警告" quiet: "控えめに警告" + nothing: "何も起こらない" _channel: create: "チャンネルを作成" diff --git a/packages/client/src/pages/settings/general.vue b/packages/client/src/pages/settings/general.vue index 13f4eaf8ec..6031652630 100644 --- a/packages/client/src/pages/settings/general.vue +++ b/packages/client/src/pages/settings/general.vue @@ -35,6 +35,7 @@ + diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts index 7de38fb2dd..378d5e2b93 100644 --- a/packages/client/src/store.ts +++ b/packages/client/src/store.ts @@ -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',