upd: add option to disable server disconnect warning
Closes transfem-org/Sharkey#152
This commit is contained in:
parent
8779c0defd
commit
62bb0d1eaa
5 changed files with 5 additions and 1 deletions
|
@ -1735,6 +1735,7 @@ _serverDisconnectedBehavior:
|
|||
reload: "Automatically reload"
|
||||
dialog: "Show warning dialog"
|
||||
quiet: "Show unobtrusive warning"
|
||||
disabled: "Disable warning"
|
||||
_channel:
|
||||
create: "Create channel"
|
||||
edit: "Edit channel"
|
||||
|
|
1
locales/index.d.ts
vendored
1
locales/index.d.ts
vendored
|
@ -1857,6 +1857,7 @@ export interface Locale {
|
|||
"reload": string;
|
||||
"dialog": string;
|
||||
"quiet": string;
|
||||
"disabled": string;
|
||||
};
|
||||
"_channel": {
|
||||
"create": string;
|
||||
|
|
|
@ -1762,6 +1762,7 @@ _serverDisconnectedBehavior:
|
|||
reload: "自動でリロード"
|
||||
dialog: "ダイアログで警告"
|
||||
quiet: "控えめに警告"
|
||||
disabled: "警告を無効にする"
|
||||
|
||||
_channel:
|
||||
create: "チャンネルを作成"
|
||||
|
|
|
@ -169,6 +169,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<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="disabled">{{ i18n.ts._serverDisconnectedBehavior.disabled }}</option>
|
||||
</MkSelect>
|
||||
<MkRange v-model="numberOfPageCache" :min="1" :max="10" :step="1" easing>
|
||||
<template #label>{{ i18n.ts.numberOfPageCache }}</template>
|
||||
|
|
|
@ -184,7 +184,7 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
},
|
||||
serverDisconnectedBehavior: {
|
||||
where: 'device',
|
||||
default: 'quiet' as 'quiet' | 'reload' | 'dialog',
|
||||
default: 'quiet' as 'quiet' | 'reload' | 'dialog' | 'disabled',
|
||||
},
|
||||
nsfw: {
|
||||
where: 'device',
|
||||
|
|
Loading…
Reference in a new issue