mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add check for warning message
This commit is contained in:
parent
a9a287d9fd
commit
0efb4de856
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@ export const action = async ({ request }: ActionFunctionArgs) => {
|
|||
const formData = await request.formData();
|
||||
const { data: config } = await getConfigurationApi(api).getConfiguration();
|
||||
|
||||
const enableWarningMessage = formData.get('EnableWarningMessage');
|
||||
if (enableWarningMessage) {
|
||||
config.EnableSlowResponseWarning = formData.get('EnableWarningMessage') === 'on';
|
||||
}
|
||||
|
||||
const responseTime = formData.get('SlowResponseTime');
|
||||
if (responseTime) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue